Values of Number Bases 10, 2, 8, 16
Base 10
Decimal |
Base 2
Binary |
Base 8
Octal |
Base 16
Hexadecimal |
0 | 0000 | 0 | 0 |
1 | 0001 | 1 | 1 |
2 | 0010 | 2 | 2 |
3 | 0011 | 3 | 3 |
4 | 0100 | 4 | 4 |
5 | 0101 | 5 | 5 |
6 | 0110 | 6 | 6 |
7 | 0111 | 7 | 7 |
8 | 1000 | 10 | 8 |
9 | 1001 | 11 | 9 |
10 | 1010 | 12 | A |
11 | 1011 | 13 | B |
12 | 1100 | 14 | C |
13 | 1101 | 15 | D |
14 | 1110 | 16 | E |
15 | 1111 | 17 | F |
16 | 10000 | 20 | 10 |
Conversions Between Number Bases
Positional notation means that the value of a digit in a number depends on its location in the number. In the decimal number system the positional value is a power of the base 10.
Thousands | Hundreds | Tens | Units |
10 3 | 10 2 | 10 1 | 10 0 |
1000 | 100 | 10 | 1 |
(1 * 1000) | + | (2 * 100) | + | (3 * 10) | + | 2 | or |
1000 | + | 200 | + | 30 | + | 2 |
You can evaluate a number in another number system in the same manner.
Octal number system positional value is a power of the base 8.
Five-Hundred-Twelves | Sixty-fours | Eights | Units |
8 3 | 8 2 | 8 1 | 8 0 |
512 | 64 | 8 | 1 |
(1 * 512) | + | (2 * 64) | + | (3 * 8) | + | 2 | or |
512 | + | 128 | + | 24 | + | 2 | or 666 10 |
Hexadecimal number system positional value is a power of the base 16.
Two-Five-Sixes | Sixteens | Units | |
16 3 | 16 2 | 16 1 | 16 0 |
4096 | 256 | 16 | 1 |
(1 * 4096) | + | (2 * 256) | + | (3 * 16) | + | 2 | or |
4096 | + | 512 | + | 48 | + | 2 | or 4658 10 |
Eights | Fours | Twos | Units |
2 3 | 2 2 | 2 1 | 2 0 |
8 | 4 | 2 | 1 |
The Binary number 1101 is understood to mean:
(1 * 8) | + | (1 * 4) | + | (0 * 2) | + | 1 | or |
8 | + | 4 | + | 0 | + | 1 | or 13 10 |
To convert to base 10 from bases 2, 8, and 16
use expanded notation using the appropriate positional values for the base
you are converting from.
|
To convert from base 10 to base 2, 8, or 16 use the remainder method.
divide by base | dividends are quotients of previous division | remainders | |
8 | 7146 | Remainders in reverse order are the solution | |
8 | 893 | 2 | |
8 | 111 | 5 | |
8 | 13 | 7 | |
8 | 1 | 5 | |
0 | 1 | Keep dividing until the quotient is zero |
To convert from base 10 to base 2, 8, or 16 use
the subtraction method.
Fill in the rest of the table with zeros. |
To convert to base 2 from base 8, convert each octal
digit separately to three binary digits.
001 101 111 101 010 = 0011011111010102
3 2 3 7 = 32378 |
To convert to Two’s Complement from Binary, reverse
all bits and add 1.
(Change each 1 to 0 and each 0 to 1, then add 1.) 11010011111 =
+ 1 |