Professional Documents
Culture Documents
NUMBER SYSTEMS
By
B.V.V.L.KALA BHARATHI
Dept of ELECTRICAL AND ELECTRONICS ENGINEERING
Aditya Engineering College(A)
Surampalem.
Aditya Engineering College (A)
Octal
Decimal 10 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Binary 2 0, 1
Octal 8 0, 1, 2, 3, 4, 5, 6, 7
Hexadecimal 16 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
3
3
A decimal number can be converted to an octal number by
r successively
dividing the number by 8 as follows: e
m
266 ÷ 8 = 33 remainder 2 LSD (right-most digit) a
33 ÷ 8 = 4 remainder 1 i
4 ÷ 8 = 0 remainder 4 MSB (left-most digit). n
d
Therefore 26610 = 4128 e
r
2
L
S
D
Digital circuits and logic
8/24/20
design
(
Aditya Engineering College (A)
Hexadecimal Number
The hexadecimal number uses base 16. It uses the digits 0
through 9 plus the letters A, B, C, D, E and F.
Hexadecimal Number
• A binary number is converted into an octal number by taking groups of 4 bits, starting
from LSB, and replacing them with a hex digit. For example, 110101102 = 3268.
Binary Decimal
Eg. 1010.012 = _________ 10
Technique:
– Multiply each binary number by 2-n, where -n is the weight of the bit for fraction starting from left to right. .
– Then, sum the results.
1010.012
= 1 x 23 + 0 x 22 + 1 x 21 + 0 x 20 . 0 x 2-1 + 1 x 2-2
= 10 + 0.25
= 10.25 10
Therefore, 1010.012 = 10.2510
Octal – Decimal
Technique:
– Multiply each octal number by 8-n, where -n is the weight of the bit for fraction starting
from left to right. .
– Then, sum the results.
46.38 = 4 x 81 + 6 x 80 + 3 x 8-1
= 38 + 0.375
= 38.375 10
Hexadecimal - Decimal
Technique:
– Multiply each hexadecimal number by 16-n, where -n is the weight of the bit for fraction
starting from left to right.
– Then, sum the results.
Binary-Coded-Decimal (BCD)
• Conversions between decimal and binary can become long and
complicated for large numbers.
Binary-Coded-Decimal (BCD)
• The Binary-Coded-Decimal (BCD) code makes conversion much
easier. Each decimal digit, 0 through 9, is represented with a 4-Bit
BCD code as shown below. The BCD code 1010, 1011, 1100, 1101,
1110 and 1111 are not used.
• BCD is not another number system like binary, octal, decimal and
hexadecimal. It is in fact the decimal system with each digit encoded
in its binary equivalent. A BCD code is not the same as a straight
binary number. For example, the BCD code requires 12 bits, while
the straight binary number requires only 10 bits to represent 87310.
THANK YOU