Octal
Octal (base 8) is a numeral system with eight as the base.
hex | dec | oct | 3 | 2 | 1 | 0 | step |
---|---|---|---|---|---|---|---|
0hex | 0dec | 0oct | 0 | 0 | 0 | 0 | 0 |
1hex | 1dec | 1oct | 0 | 0 | 0 | 1 | 1 |
2hex | 2dec | 2oct | 0 | 0 | 1 | 0 | 3 |
3hex | 3dec | 3oct | 0 | 0 | 1 | 1 | 2 |
4hex | 4dec | 4oct | 0 | 1 | 0 | 0 | 7 |
5hex | 5dec | 5oct | 0 | 1 | 0 | 1 | 6 |
6hex | 6dec | 6oct | 0 | 1 | 1 | 0 | 4 |
7hex | 7dec | 7oct | 0 | 1 | 1 | 1 | 5 |
8hex | 8dec | 10oct | 1 | 0 | 0 | 0 | F |
9hex | 9dec | 11oct | 1 | 0 | 0 | 1 | E |
Ahex | 10dec | 12oct | 1 | 0 | 1 | 0 | C |
Bhex | 11dec | 13oct | 1 | 0 | 1 | 1 | D |
Chex | 12dec | 14oct | 1 | 1 | 0 | 0 | 8 |
Dhex | 13dec | 15oct | 1 | 1 | 0 | 1 | 9 |
Ehex | 14dec | 16oct | 1 | 1 | 1 | 0 | B |
Fhex | 15dec | 17oct | 1 | 1 | 1 | 1 | A |
Part of a series on |
Numeral systems |
---|
List of numeral systems |
In the decimal system, each place is a power of ten. For example:
In the octal system, each place is a power of eight. For example:
By performing the calculation above in the familiar decimal system, we see why 112 in octal is equal to in decimal.
Octal numerals can be easily converted from binary representations (similar to a quaternary numeral system) by grouping consecutive binary digits into groups of three (starting from the right, for integers). For example, the binary representation for decimal 74 is 1001010. Two zeroes can be added at the left: (00)1 001 010, corresponding to the octal digits 1 1 2, yielding the octal representation 112.
× | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 |
1 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 |
2 | 2 | 4 | 6 | 10 | 12 | 14 | 16 | 20 |
3 | 3 | 6 | 11 | 14 | 17 | 22 | 25 | 30 |
4 | 4 | 10 | 14 | 20 | 24 | 30 | 34 | 40 |
5 | 5 | 12 | 17 | 24 | 31 | 36 | 43 | 50 |
6 | 6 | 14 | 22 | 30 | 36 | 44 | 52 | 60 |
7 | 7 | 16 | 25 | 34 | 43 | 52 | 61 | 70 |
10 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 100 |
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.