Professional Documents
Culture Documents
ITS CONVERSION
ODEJAR, CHEENA M.
BSCPE-1A
LEARNING OBJECTIVES
Emanuel Swedenborg
Can you develop a new
numeral system based on 64?
hmm..
I don’t think that’s a
good idea Sire.
l, s, n, m, t, f, u(v), o
Emanuel Swedendorg
Year 1718
REVIEW OF DECIMAL AND BINARY
NUMBERS
DECIMAL NUMBER SYSTEM
• The Base-10 Number System
• Has 10 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) Hence, base=10
• Each position of a digit represents a specific power of the base (10).
• The positions starting from the rightmost digit moving towards left
represent units, tens, hundreds, thousands, and so on, respectively.
EXAMPLE:
The decimal number 1457₁₀ can also be written as,
(1×103) + (4×102) + (5×101) + (7×100)
=(1×1000) + (4×100) + (5×10) + (7×1)
=1000 + 400 + 50 + 7
=1457
BINARY NUMBER SYSTEM
• The Base-2 Number System
• Has only 2 symbols or digits (0 and 1). Hence, base = 2.
• The maximum value of a single digit is 1 (one less than the value of
the base).
• Bit – stands for binary digit.
• It is denoted by a2, where a is a number with 0’s and 1’s.
EXAMPLE:
• 1111102
• 11111112
• 10110012
BINARY NUMBER SYSTEM
EXAMPLE:(Binary Decimal)
= 16 + 0 + 4 + 0 + 1
= 21₁₀
EXAMPLE: (Decimal Binary)
14₁₀ =
14₁₀ = 1110₂
OCTAL NUMBER SYSTEM
OCTAL NUMBER SYSTEM
• The Base-8 Number System
• Has 8 symbols or digits (0, 1, 2, 3, 4, 5, 6, 7) Hence, its base=8
• To count above 7, begin another column and start over: 10, 11, 12, 13,
14, 15, 16, 17, 20, 21 and so on.
• Each position of a digit represents a specific power of the base (8).
• It is denoted by a8 where a is a number with digits 0 to 7
EXAMPLE:
248, 1098, 558, etc.
In octal number system, each digit position has the weight eight
regarding power eight shown in the figure below.
OCTAL TO DECIMAL NUMBER
To convert an octal number to decimal
number we need to multiply each digit of
the given octal with the reducing power
of 8.
EXAMPLE 1.
Convert the octal number 23748 in decimal number.
EXAMPLE 3.
Let 125 an octal number denoted by 1258 , find the decimal number.
Solution. Step 3: Get the sum of the integer and fractional part.
354.428 = 236₁₀ + 0.53125₁₀
= 236.53125₁₀
EXAMPLE 1:
Suppose 560₁₀ is a decimal number. Convert it into an octal number.
Solution:
8 560
8 70 0 x 8 = 0
8 8 .75 x 8 = 6
= 1060 Therefore, 560₁₀ = 10608
9 1 0 x 8 = 0
0 .125 x 8 = 1
Read Up
DECIMAL TO OCTAL NUMBER
EXAMPLE 1:
Suppose 560₁₀ is a decimal number. Convert it into an octal number.
Other solution:
⁵⁶⁰⁄₈ = 70.0 .0 x 8 = 0 (LSD)
⁷⁰⁄₈ = 8.75 .75 x 8 = 6 = 1060
⁸⁄₈ = 1.0 .0 x 8 = 0
⅛ = 0.125 .125 x 8 = 1 (MSD)
To convert an octal number to binary, each octal digit is converted its 3-bit
binary equivalent according to this table
Octal Digit 0 1 2 3 4 5 6 7
Binary Equivalent 000 001 010 011 100 101 110 111
Example 1:
Convert the octal number 258 into a binary number.
010 101
Solution.
Refer to the table above. We can say that octal digit 2 and octal digit 5
Example 2:
Convert the octal number 1408 to binary number.
Solution.
We can say that, 1 4 0
Octal digit 1 = 001
Octal digit 4 = 100 001 100 000
Octal digit 0 = 000
Example 3:
Convert the octal number 546738 to binary number.
Solution.
We can say that,
Octal digit 5 = 101 5 4 6 7 3
Octal digit 4 = 100
Octal digit 6 = 110
Octal digit 7 = 111 101 100 110 111 011
Octal digit 3 = 011
Solution.
So we can say that,
Octal digit 3 = 011 3 5 7 1
Octal digit 5 = 101
Octal digit 7 = 111 011 101 111 001
Octal digit 1 = 001
EXAMPLE 1:
Convert 100010₂ to octal number.
Solution. Group the binary digits into 3, starting from the right.
100010₂ = 100 010
With the help of the table, convert the divided bits into octal.
binary number 100 = 4
binary number 010 = 2
Example 2:
Convert the binary number 001010101₂ to octal number.
Solution.
Divide the given into 3-bits.
001010101₂ = 001 010 101
Example 3:
Convert the binary number 010110010101₂ to octal number.
Solution.
Divide the given into 3-bits.
010110010101₂ = 010 110 010 101
Example 4:
Convert the binary number 01101₂ to octal number.
Solution.
Divide the given into 3-bits.
01101₂ = (0)01 101
Example 5:
Convert the binary number 010100111.100011₂ to octal number.
Solution.
Divide the given into 3-bits.
010100111.100011₂ = 010 100 111 . 100 011