BINARY, OCTAL and HEXADECIMAL NUMBERS

For convenience we often use base 8 (octal) or base 16 (hexadecimal) when writing numbers that are stored in binary in the computer.

DecimalBinaryOctalHex
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010

Notice that each octal digit corresponds to three binary digits, and each "hex" digit corresponds to four binary digits. 

[Prev][TOC][Next]


CS1104 Main Page
Last Updated 01/05/2000
© L.Heath, 2000