Binary Numbers
Given a binary number, add up the
powers of 2 corresponding to 1s
1010 0000
0x2
0
= 0x1
= 0
0x2
1
= 0x2
= 0
0x2
2
= 0x4
= 0
0x2
3
= 0x8
= 0
0x2
4
= 0x16
= 0
1x2
5
= 1x32
= 32
0x2
6
= 0x64
= 0
1x2
7
= 1x128
=
128
= 160