Math Review |
Modified: |
Decimal3210 column positionBinary
149310 = 1*103 + 4*102 + 9*101 + 3*1003210-1-2 column position
1493.7610 = 1*103 + 4*102 + 9*101 + 3*100 + 7*10-1 + 3*10-243210 column positionHexadecimal
101102 = 1*24 + 0*23 + 1*22 + 1*21 + 0*20
= 16 + 4 + 2
= 221043210-1-2 column position
10110.012 = 1*24 + 0*23 + 1*22 + 1*21 + 0*20 + 0*2-1 + 1*2-2
= 16 + 4 + 2 + 1/4
= 22 1/4103210 column position
12B416 = 1*163 + 2*162 + 11*161 + 4*160
= 4096 + 512 + 176 + 4
= 4788103210-1-2 column position
12B4.0A16 = 1*163 + 2*162 + 11*161 + 4*160 + 0*16-1 + 10*16-2
= 4096 + 512 + 176 + 4 + 10/256
= 4788 10/25610
Decimal/Binary/Hexadecimal Decimal Binary Hexadecimal Decimal Binary Hexadecimal 0 0000 0 8 1000 8 1 0001 1 9 1001 9 2 0010 2 10 1010 A 3 0011 3 11 1011 B 4 0100 4 12 1100 C 5 0101 5 13 1101 D 6 0110 6 14 1110 E 7 0111 7 15 1111 F
Question
Expand from positional representation and write as decimal.
- 123.410
- 1AB16
- 11001.12
From any Base to Decimal - Write in positional form Base 10. See Positional Number Systems above.From Decimal to any Base - Algorithm can be roughly stated as:
- Divide Number by base.
- Write Remainder
- Set Number = Quotient
- Go to 1 if Quotient not equal 0
- Result is remainder of each division, written in reverse order produced.
- Decimal to Decimal
Convert 24510 to decimal.24 Quotient 2 0 10/ 245 10/24 10/ 2 -20 -20 -0 45 4 2 -40 5 RemainderResult 24510 = 24510
Decimal to Binary
Convert 2510 to binary.12 Quotient 6 3 1 0 2/ 25 2/ 12 2/ 6 2/3 2/1 24 12 6 2 0 1 Remainder 0 0 1 1Result 2510 = 110012
Decimal to Hexadecimal
Convert 478810 to hexadecimal.
299 Quotient 18 1 0 16/4788 16/ 299 16/ 18 16/1 : : 16 0 4 Remainder 1110 = B16 2 1Result 478810 = 12B416Binary to Hexadecimal - Group right to left by 4's and use memorized table on each group.
Hexadecimal to Binary - Use memorized table to convert one hexadecimal digit into corresponding 4 binary digits.
- 10110110102
- grouped by 4's is: 0010 1101 1010
- Converted is: 2 D A16
- Result is: 10110110102 = 2D416
- 12B416
- Hexadecimal: 1 2 B 4
- Binary: 0001 0010 1011 0100
- Result is: 12B416 = 00010010101101002
Question
Convert 8310 to:
- Binary
- Hexadecimal
- Convert 110011012 to hexadecimal.
- Convert 1B4216 to binary.
You know these!
Binary Definitions
Examples+ 0 0 1 1 +0 +1 +0 +1 0 1 1 10- 0 0 1 1 -0 -1 -0 -1 0 -1 1 0* 0 0 1 1 *0 *1 *0 *1 0 0 0 1/ 0/0 undefined 1/0 undefined 0/1 = 0 1/1 = 1
10110 10110 1010 1010
+1011 -1011 *101 101/110010
100001 1011 1010 -101
0000 010
+1010 -000
110010 101
-101
000
000
Question
8. 9. 10. 11.
10101
10101 1011
_____
+1011
-1011 *101
101/10010
Hexadecimal Arithmetic - Most of us do basic decimal math in our head, so convert column digits to decimal, do arithmetic, convert back to hexadecimal.
Examples
ACE 167B +BAD -ACE 167B BADCDE 1C89 +FAB -FAB 1C89 CDEFF 100 +1 -1 100 FF
Question
11. 12.
34
B2
+E9
-45