FIT100
Binary Numbers
Given a binary number, add up the
powers of 2 corresponding to 1s
*
1110 0110
–
0x2
0
= 0
–
1x2
1
= 2
–
1x2
2
= 4
–
0x2
3
= 0
–
0x2
4
= 0
–
1x2
5
= 32
–
1x2
6
= 64
–
1x2
7
=
128
–
= 230