SmartGadgets Numbersystem
SmartGadgets Numbersystem
0 – 0000
1 - 0001
2 - 0010
3 - 0011
4 – 0100
5 - 0101
6 - 0110
7 - 0111
8 - 1000
Decimal Hex Binary
1 1 0001
2 2 0010
4 4 0100
8 8 1000
Binary to Hex
• Break the hex in groups of 4 starting with right
• 1001 1110 to be converted to Hex
• 1110 = 8+4+2 =14 = E
• 1001 = 8+1 = 9
• So, Hex = 0xE9
Hex to binary
• 0x73 to be converted to binary
• Break each letter separately
• 7 = 0111
• 3 = 0011
• 0x73 = 0111 0011 (in binary)
Decimal to Binary and Hex
• 73 in Decimal to Binary and Hex
1 2 4 8 16 32 64 73 128