CONVERT BINARY TO OCTAL AND
HEXADECIMAL TO DECIMAL
Understanding Binary
Number System
The binary number system is closely
associated with the computer
system where is referred to as a bit
in the binary number system.
Understanding octal number
system
Octal Number System is a number system
with base 8 as it uses eight symbols (or
digits) namely 0, 1, 2, 3, 4, 5, 6, and 7. This
number system is mainly used in computer
programming as it is a compact way of
representing binary numbers with each octal
number corresponding to three binary digits.
The octal numbers have many applications
and importance such as it is used in
computers and digital numbering systems.
UNDERSTANDING DECIMAL NUMBER
SYSTEM
A decimal number system is the number
system that we use on a daily basis based
on the 10 digits from 0 - 9 0, or 1, 2, 3, 4, 5,
6, 7, 8, & 9. In mathematics, a number
system is considered the notation of
numbers by using digits or symbols. The
number system consists of four main types
namely binary number system, decimal
number system, octal number, and
hexadecimal number system. The decimal
number system is also known as the Hindu-
Arabic or Arabic number system since in
UNDERSTANDING HEXADECIMAL
NUMBER SYSTEM
The word hexadecimal can be divided into
'Hexa' and 'deci', where ‘hexa' means 6
and 'deci' means 10. The hexadecimal
number system is described as a 16 digit
number representation of numbers from 0 - 9
and digits from A - F. In other words, the first 9
numbers or digits are represented as numbers
while the next 6 digits are represented as
symbols from A - F. Hexadecimal is very similar
to the decimal number system that has a base
number of 9. Therefore, after 9 digits, the 10th
digit is represented as a symbol - 10 as A, 11 as
B, 12 as C, 13 as D, 14 as E, and 15 as F. Hence,
CONVERSION
BINARY TO
InOCTAL
binary to octal conversion, we learn to
convert base 2 number system into base 8
number system. We cannot directly convert
binary to octal, so we first convert binary to
decimal, then the decimal number to the
equivalent octal number system. Binary
numbers are commonly used in computers, in
the form of bits and bytes, since the computer
understand the language of 0 and 1 only. At the
same time, octal numbers are used in
electronics. Before going to the conversion, we
have to learn about octal and binary numbers.
CONVERSION FROM BINARY TO
OCTAL
•Take the given binary number
•Multiply each digit by 2n-1 where n is the position of the digit
from the decimal
•The resultant is the equivalent decimal number for the given
binary number
•Divide the decimal number by 8
•Note the remainder
•Continue the above two steps with the quotient till the
quotient is zero
•Write the remainder in the reverse order
•The resultant is the required octal number for the given
binary number
Here is a table for octal and binary, to solve the problems based on their
conversion more quickly.
Hexadecimal Number System
The base of a hexadecimal system is 16. The 16
symbols involved in this system include 10 decimal
digits and the first six letters of the English
alphabet, i.e. 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E,
F. Here, the alphabets can be treated 10, 11, 12, 13,
14 and 15, respectively.
Decimal Number System
A number system that uses digits from 0 to 9 to
represent a number with base 10 is called
the decimal number system. The number is
expressed in base-10, where each value is denoted
by 0 or the first nine positive integers. Each value in
this number system has the place value of power
10. It means the digit at the tens place is ten times
HEXADECIMAL TO DECIMAL TABLE
Hexadecimal Decimal (Equivalent Value)
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
A 10
B 11
C 12
D 13
E 14
F 15
EXAMPLE:
Convert 7CF (hex) to decimal.
SOLUTION:
Given hexadecimal number is 7CF.
In hexadecimal system,
7=7
C = 12
F = 15
To convert this into a decimal number system, multiply each digit
with the powers of 16 starting from units place of the number.
7CF = (7 × 162) + (12 × 161) + (15 × 160)
= (7 × 256) + (12 × 16) + (15 × 1)
= 1792 + 192 + 15
= 1999
QUIZ TIME!!
1-2. What is the base-2 that uses only two digits in
binary system?
3-4. The word hexadecimal can be divided into ‘hexa’
and ‘deci’.
Where hexa means ___ while deci means ___
( 6pts )
Write your whole name using ascii binary code.