Basicon 2 Term, SY 2002-2003: Number System Base Symbols
Basicon 2 Term, SY 2002-2003: Number System Base Symbols
Number System
• The radix or base defines the number of symbols needed to represent all possible numbers in
the number system.
A. Decimal ⇔ Binary
To convert decimal number to binary, continually divide the number by 2 until the quotient is
zero. The remainders give the binary representation of the number in reverse order.
Remainder
2 ) 14 0
2 ) 7 1
2 ) 3 1
2 ) 1 1
0
To convert binary number to decimal, multiply the binary digits by the correct power of 2 and
sum them.
11102 = 1 x 23 + 1 x 22 + 1 x 21 + 0 x 20
=1x8+1x4+1x2+0x1
=8+4+2
= 1410
B. Decimal ⇔ Octal
To convert decimal number to octal, continually divide the number by 8 until the quotient is
zero. The remainders give the octal representation of the number in reverse order.
Remainder
8 ) 23 7
8 ) 2 2
0
To convert octal number to decimal, multiply the octal digits by the correct power of 8 and
sum them.
Page 1 of 5
BASICON
2nd Term, SY 2002-2003
278 = 2 x 81 + 7 x 80
=2x8+7x1
= 16 + 7
= 2310
C. Decimal ⇔ Hexadecimal
To convert decimal number to hexadecimal, continually divide the number by 16 until the
quotient is zero. The remainders give the hexadecimal representation of the number in
reverse order.
Remainder
16 ) 46 14 = E
16 ) 2 2
0
To convert hexadecimal number to decimal, multiply the hexadecimal digits by the correct
power of 16 and sum them.
D. Binary ⇔ Octal
To convert binary number to octal, binary digits are grouped into threes starting from the
right hand end of the bit pattern and padding the leftmost group with zeros to make a pattern
of three (if necessary). Each group of three is coded as a single octal digit similar to
converting 3 binary digits to decimal.
011 010
3 2
To convert octal number to binary, each octal digit is expanded into the equivalent 3 binary
digits.
3 2
011 010
Page 2 of 5
BASICON
2nd Term, SY 2002-2003
E. Binary ⇔ Hexadecimal
To convert binary number to hexadecimal, binary digits are grouped into fours starting from
the right hand end of the bit pattern and padding the leftmost group with zeros to make a
pattern of four (if necessary). Each group of four is coded as a single hexadecimal digit
similar to converting 4 binary digits to decimal.
0010 1010
2 10 (A)
To convert hexadecimal number to binary, each hexadecimal digit is expanded into the
equivalent 4 binary digits.
2 A
0010 1010
Binary Arithmetic
Page 3 of 5
BASICON
2nd Term, SY 2002-2003
Octal Arithmetic
Page 4 of 5
BASICON
2nd Term, SY 2002-2003
Hexadecimal Arithmetic
Page 5 of 5