An "octal digit" is a number in base 8. The number system of that sort counts like this:

   1, 2, 3, 4, 5, 6, 7, 10,
   11, 12, 13, 14, 15, 16, 17, 20,
   21, 22, 23, 24, 25, 26, 27, 30,

The character representation to distinguish an octal digit from a decimal digit is the leading 0 so 6 and 06 are in fact the same value; but 23 and 023 are entirely different values where the 023 is the octal digit and is equivalent to the decimal value of 19 (023 being 2 8's and 3 single units).

To go a bit further, hexadecimal digits are those with a 16 base; counting in hexadecimal would be as follows:

   1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, 10,
   11, 12, 13, 14, 15, 16, 17, 18, 19, 1A, 1B, 1C, 1D, 1E, 20,

Hexadecimal digits are designated as such by a leading "0x" or "0X" so the numbers 0x20 and 20 likewise represent entirely different values; 0x20 is equivalent to 32 (2 16's and 0 single units).
----
Holland's Person, Bill
E-Mail: billgal...@centurytel.net
- "A cynic is a man who, when he smells flowers, looks around for a coffin."

For answers to frequently asked questions about this list visit:
http://www.jaws-users.com/help/

Reply via email to