Number System Conversion 1

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

DECIMAL (Based 10) BINARY (Based 2) OCTAL (Based 8) HEXADECIMAL (Based 16)

0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 8
9 1001 9
10 1010 A
11 1011 B
12 1100 C
13 1101 D
14 1110 E
15 1111 F
DECIMAL TO BINARY
Example 1:

98110
Answer: 512 256 128 64 32 16 8 4 2 1

1 1 1 1 0 1 0 1 0 12

Convert from DECIMAL 98110 to Hexadecimal


Convert the DECIMAL to BINARY FIRST then group the BINARY in groups of 4 beginning on the right working to
the left. For each group determine the hexadecimal value based on the table.

8 4 2 1 8 4 2 1 8 4 2 1

1 1 1 1 0 1 0 1 0 1
3 D 5

Answer: 3D516
Convert from DECIMAL 98110 to Octal
Convert the DECIMAL to BINARY FIRST then group the BINARY in groups of 3 beginning on the right working to
the left. For each group determine the hexadecimal value based on the table.

4 2 1 4 2 1 4 2 1 4 2 1

1 1 1 1 0 1 0 1 0 1

1 7 2 5

Answer: 17258
Example 2: with decimal point
Convert BINARY with decimal point to Hexadecimal
On the whole number, group the BINARY in groups of 4 beginning on the right working to the left. For each
group determine the hexadecimal value based on the table.
On the decimal point number, group the BINARY in groups of 4 beginning on the left working to the right. For
each group determine the hexadecimal value based on the table. Add ZERO (0) in the last group if needed to
complete the 4 bits.
Whole number Decimal point
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1

1 1 0 1 0 1 0 0 1 . 0 1 1 1 1 1 1 1 1 0 0 0

1 A 9 7 F 8

Answer: 1A9.7F816

Example 3: with decimal point


Convert BINARY with decimal point to Octal
On the whole number, group the BINARY in groups of 3 beginning on the right working to the left. For each
group determine the hexadecimal value based on the table.
On the decimal point number, group the BINARY in groups of 3 beginning on the left working to the right. For
each group determine the hexadecimal value based on the table. Add ZERO (0) in the last group if needed to
complete the 3 bits.

Whole number Decimal point


4 2 1 4 2 1 4 2 1 4 2 1 4 2 1 4 2 1 4 2 1

1 1 0 1 0 1 0 0 1 . 0 1 1 1 1 1 0 0 0 1 1 0

6 5 1 3 7 0 6

Answer: 651.37068
POWER OF 2 TABLE with Decimal Point

NOTE: “These table will only applicable on the conversion of BINARY to DECIMAL with decimal Point”

Example 4:
BINARY TO DECIMAL with decimal point
64 32 16 8 4 2 1 0.5 0.25 0.125

1 0 1 0 1 0 1 . 1 0 1
64 + 16 + 8 + 4 + 1 + 0.5 + 0.125

Answer: 85.62510

You might also like