Number System
Number System
Number System
• Solution:
0.015625 x 8 = 0.125
0.125 x 8 = 1.000
So, 0.015625(base 10) = 0.01(base 8)
Decimal fraction to Octal
• Convert decimal number 7.16 into octal form.
• Solution:
So, 7(base 10) = 7(base 8)
0.16 x 8 = 1.28
0.28 x 8 = 2.24
0.24 x 8 = 1.92
0.92 x 8 = 7.36
0.36 x 8 = 2.88
Solution:
0.00390625 x 16 = 0.0625
0.0625 x 16 = 1.000
• So, 0.00390625(base 10) = 0.01(base 16)
Decimal Fraction to Hexadecimal
• Convert decimal number 10.16 into hexadecimal
• Solution:
10(base 10) = A(base 16)
0.16 x 16 = 2.56
0.56 x 16 = 8.96
0.96 x 16 = 15.36
0.36 x 16 = 5.76
0.76 x 16 = 12.16
So, 0.16(base 10) = 0.28F5C...(base 16)
Solution:
= 0x80 + 0x8-1 + 1x8-2
= 0 + 0 + 0.015625
= 0.015625
• Solution:
= 7x80 + 1x8-1 + 2x8-2 + 1x8-3 + 7x8-4 + 2x8-5
= 7 + 0.125 + 0.03125 + 0.001953125 +
0.001708984375 + 0.00006103515624
= 7.1599...
= 7.16 (approx. value)
• Solution:
111101.0110102
75.328
Octal fraction to Binary
• Convert 64.1758 to binary
• Solution:
64.1758
= 110 100 . 001 111 101
= 110100.0011111012
Binary Fraction to Hexadecimal
Binary Fraction to Hexadecimal
• Convert 11110.010112 to hexadecimal
Binary Fraction to Hexadecimal
• Convert 11110.010112 to hexadecimal
Solution:
11110.010112
= 1E.5816
Hexadecimal fraction to Binary
• Convert 3B25.E to binary
Hexadecimal fraction to Binary
• Convert BA2.23C16 to binary
Hexadecimal fraction to Binary
BA2.23C16
= 101110100010.0010001111
Conversion Between Number Bases
(O-H)
• The method used for the conversion of an octal
number to hexadecimal number is accomplished by
the following steps:
1 Convert each octal digit to 3-bit binary form.
2 Combine all the 3-bit binary numbers.
3 Segregate the binary numbers into the 4-bit binary
form by starting the first number from the right bit
(LSB) towards the number on the left bit (MSB).
4 Finally, convert these 4-bit blocks into their
respective hexadecimal symbols
Conversion Between Number Bases
(O-H)
• Determine the hexadecimal equivalent of (2327)8.
=1 * 512 + 0 * 64 + 0 * 8 + 2 * 1
= 512 + 0 + 0+ 2
= 514(decimal number)
16 | 514
16 | 32 --2
2 -- 0
10028 = 20216
Conversion Between Number Bases
(H-O)
• The method used for the conversion of a
hexadecimal number to octal number is the
same as that used for the octal to hexadecimal
conversion, except that each hexadecimal digit
is converted into 4-bit binary form and then
after grouping of all the 4-bit binary blocks, it
is converted into the 3-bit binary form. Finally,
these 3-bit binary forms are converted into
octal symbols.
Conversion Between Number Bases
(H-O)
• Determine the octal equivalent of (2B6)16.
Conversion Between Number Bases
(H-O)