G.I.F.T. Animated Logo.

General Information, Facts & Tables
[Binary Code Comparisons]

View a framed version of this site.View the list of all pages on this site.Search the content of this site by keyword.

Overview

top of page

There are several different ways that numeric values can be represented. The list below contains the most commonly used.
 

Table of Codes

top of page

Decimal

Hexadecimal

Octal

Binary

Binary Coded
Decimal
(BCD)

Exces 3

Gray

0

0

0

 0000 0000

0000

0011

 0000

1

1

1

 0000 0001

0001

0100

 0001

2

2

2

 0000 0010

0010

0101

 0011

3

3

3

 0000 0011

0011

0110

 0010

4

4

4

 0000 0100

0100

0111

 0110

5

5

5

 0000 0101

0101

1000

 0111

6

6

6

 0000 0110

0110

1001

 0101

7

7

7

 0000 0111

0111

1010

 0100

8

8

10

 0000 1000

1000

1011

 1100

9

9

11

 0000 1001

1001

1100

 1101

10

A

12

 0000 1010

-

 

 1111

11

B

13

 0000 1011

-

 

 1110

12

C

14

 0000 1100

-

 

 1010

13

D

15

 0000 1101

-

 

 1011

14

E

16

 0000 1110

-

 

 1001

15

F

17

 0000 1111

-

 

 1000

 

Notes

top of page

The "Gray" code is designed so that only one digit in the 4 digit code changes between each increment / decrement.