Conversion
binary 0 1
Decimal 0~9
Hexadecimal 0~9, A~F(10~15)
Binary - Decimal
1 decimal number = 8 binary digits;
For example 0 0 1 0 0 1 1 0----32+4+2=38
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 |
Can only go to 255
binary to hexadecimal
1 hexadecimal number = 4 binary digits
8 4 2 1
1 1 0 1---D
Decimal to hexadecimal
Method: Ten to two, two to sixteen