Thursday, February 5, 2009

octal number system

A numbering system that uses eight digits. It is used as a shorthand method for representing binary characters that use six-bits. Each three bits (half a character) is converted into a single octal digit. Okta is Greek for 8.


Decimal Binary Octal
0 000 0
1 001 1
2 010 2
3 011 3
4 100 4
5 101 5
6 110 6
7 111 7
The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Numerals can be made from binary numerals by grouping consecutive digits into groups of three (starting from the right). For example, the binary representation for decimal 74 is 1001010, which groups into 001 001 010 — so the octal representation is 112.

In decimal systems each decimal place is a base of 10. For example:


In octal numerals each place is a power with base 8. For example:


By performing the calculation above in the familiar decimal system we see why 112 in octal is equal to 64+8+2 = 74 in decimal.

Octal is sometimes used in computing instead of hexadecimal.

No comments:

Followers