1.2-Number Systems and Conversions
1.2-Number Systems and Conversions
Their Conversions
An Introduction to Binary, Octal, Decimal, and
Hexadecimal Systems
WHAT
ARE
NUMBE
R
Number systems are methods for
representing numbers using a specific set
of symbols, where the base determines the
number of symbols and the value of each
position in a number, like how 10 in
decimal means 1 ten and 0 ones, while in
binary, 10 means 1 two and 0 ones.
- Binary (Base-2)
- Octal (Base-8)
- Decimal (Base-10)
• A decimal number such as 7,392
represents a quantity equal to 7
thousands plus 3 hundreds, plus 9 tens,
plus 2 units.
• The thousands, hundreds, etc. are
powers of 10 implied by the position of
the coefficients. To be exact, 7,392
should be written as
• a4 a3 a2 a1 a0 . a-1 a-2
• In general, a number expressed in base-r
system has coefficients multiplied by
powers of r.
(11010.11)2 =
• Example: (1011)_2
• Each digit represents powers of 2
from right to left:
• Example: (1234)_10
• Each digit represents powers of 10
from right to left:
(1234)_10 =
1×10^3 + 2×10^2 + 3×10^1 + 4×10^0 =
1000 + 200 + 30 + 4 = (1234)_10
O C TA L S Y S T E M ( B A S E - 8 )
• Example: (345)_8
• Each digit represents powers of 8
from right to left:
• Example: (2B7)_16
• Each digit represents powers of 16
from right to left:
Convert
2. Perform multiplication:
(1011)_2 to
8 + 0 + 2 + 1 = 11
Decimal
• Answer: (1011)_2 =
CONVERTING
FROM
DECIMAL
DECIMAL TO BINARY
CONVERSION
Step-by-Step 1. Divide 13 by 2. Quotient is 6,
Example: Convert remainder is 1.
(13)_10 to Binary 2. Divide 6 by 2. Quotient is 3,
remainder is 0.
If divisible by 2 = 3. Divide 3 by 2. Quotient is 1,
remainder is 1.
remainder equals
4. Divide 1 by 2. Quotient is 0,
0
remainder is 1.
If not divisible by 2
• Answer: (13)_10 = (1101)_2
= remainder
Least Significant Digit
(41)10 =
(A5 A4 A3 A2 A1 A0)2 =
• Divide the decimal number by
DECIMAL 8.
SION
• Take each hexadecimal digit.