Number Representation


Why do computer scientists use octal and hexadecimal?

Just group the bits into groups of 3 or 4.

128's 64's  32's 16's   8's  4's   2's  1's
0010 1011
     
64's 8's 1's
00
101
011
0 * 64 5 * 8 3 * 1    ( 001010112 = 0538 = 4310)
     
16's 1's
0010
1011
2 * 16 B16 * 1    ( 001010112 = 0x2B16 = 4310)
  (B16 = 1110)   
     


Alyce Brady, Kalamazoo College