- Base two
- Why?
- Digits 0,1
- 1101012 = 1*25+1*24+0*23+1*22+0*21+1*20 = 1*32+1*16+0*8+1*4+0*2+1*1 = 53
- To convert a number in binary to base ten, just do this.
- To convert a number in base ten to binary
While the quotient is not zero
divide the decimal number by the new base
add the remainder as the next digit of the new number (on the left)
replace the number with the quotient
-
207 <- quotient
------
3 | 624
6
-
02
00
--
24
21
--
3 <- remainder
- Convert 49 to base two
49/2 = 24 R 1
24/2 = 12 R 0
12/2 = 6 R 0
6/2 = 3 R 0
3/2 = 1 R 1
1/2 = 0 R 1
Read this backwords, so the number is 110001
- check this 110001 = 1 * 25+1*24+1*20 = 32+16+1
- Powers of two.
- 20 = 1
- 21 = 2
- 22 = 4
- 23 = 8
- 24 = 16
- 25 = 32
- 26 = 64
- 27 = 128
- 28 = 256
- 29 = 512