Binary, Octal, Decimal, and Hexadecimal Numbers



BINARY
(Base 2)

Octal
(Base 8)

DECIMAL
(Base 10)

HEXADECIMAL
(Base 16)

0000

0

0

0

0001

1

1

1

0010

2

2

2

0011

3

3

3

0100

4

4

4

0101

5

5

5

0110

6

6

6

0111

7

7

7

1000

10

8

8

1001

11

9

9

1010

12

10

A

1011

13

11

B

1100

14

12

C

1101

15

13

D

1110

16

14

E

1111

17

15

F



Computer memory, whether it consists of RAM chips, magnetic "hard" and "floppy" disks, or optical disks like CD-ROMs or DVDs, is really just a huge collection of ones and zeros. Read and write heads, miniature versions of the heads on your cassette tape recorder or VCR, are used to flip the magnetic polarities of tiny specks of metal on the disk's surface, or to dig tiny "pits" in the surface of a plastic CD. Specks which are polarized one way are used to represent zeros, and those polarized the other way to represent ones. The same goes for the pits and the surfaces of the CDs. By combining groups of ones and zeros, you can represent just about any sort of data you wish.

Computers use the Binary (base two) number system to represent everything from the keys on your keyboard to the picture elements (pixels) of a photograph or drawing. The binary system corresponds more easily with the Hexadecimal (base 16) system than with the Decimal system we use every day. Perhaps we think in tens because we have ten fingers. Some of the ancient Greek philosophers thought ten was the "perfect number", but as you can see, you can represent up to sixteen possibilities using four columns in Binary numbers, so Hexadecimal is more a more perfect match when it comes to computing.

You will need to be able to recognize Hex numbers if you intend to do any serious Web page design, or if you will be responsible for a network server.


Copyright ©
Christopher Brown-Syed 1995-2004. Disclaimers.