1234 (decimal) base 10 4 * 1 3 * 10 2 * 100 1 * 1000 011010 (binary) base 2 = 2+8+16 (dec) = 26 (dec) 0 * 1 = 0*1 1 * 2 = 1*2 0 * 2*2 = 0*4 1 * 2*2*2 = 1*8 1 * 2*2*2*2 = 1*16 0 * 2*2*2*2*2 = 0*32 54 (dec) = 110110 (bin) 32 1 (54-32) = 22 16 1 (22-16) = 6 8 0 4 1 (6-4) = 2 2 1 (2-2) = 0 1 0 54 (dec) = 110110 (bin) 27 R 0 (last digit) 13 R 1 6 R 1 3 R 0 1 R 1 0 R 1 253 (dec) = 11111101 (bin) 128 1 (253-128) = 125 64 1 (125- 64) = 61 32 1 ( 61- 32) = 29 16 1 ( 29- 16) = 13 8 1 ( 13- 8) = 5 4 1 ( 5- 4) = 1 2 0 1 1 ( 1- 1) = 0 253 (dec) = 11111101 (bin) 126 R 1 63 R 0 31 R 1 15 R 1 7 R 1 3 R 1 1 R 1 0 R 1 oct (base 8) hexadecimal (base 16) 253 (dec) = 375 (oct) 64 1 253 - 64 = 189 64 1 189 - 64 = 125 64 1 125 - 64 = 61 8 7 61 - 8*7 = 5 1 5 253 (dec) = 375 (oct) 31 R 5 3 R 7 0 R 3 253 (dec) = 011 111 101 (bin) = 375 (oct) hex (base 16) (d) = (h) 10 = a 11 = b 12 = c 13 = d 14 = e 15 = f 253 (dec) = fd (hex) 253 / 16 = 15 R 13 15 / 16 = 0 R 15 253 (dec) = 1111 1101 (bin) = fd (hex) 64 (hex) = 100 (dec) 6 * 16 = 96 4 * 1 = 4 1 = 1 16 = 16 16 * 16 = 256 16 * 16 * 16 = 4096 16 * 16 * 16 * 16 = 65656 ... 16 (dec) = 10 (hex) = 10000 (bin) 0x7f 127 (dec) 7 * 16 = 112 f * 1 = 15 7f (hex)= 112+15 (dec) = 127 0xff (hex) = 255 (dec) there are 10 kinds of people in the world, those who understand binary and those who don't why do math majors confuse haloween and christmas? because oct 31 is dec 25