Page 26 - TP_iPlus_V2.1_Class7
P. 26
= (1 × 512) + (7 × 64) + (6 × 8) + (3 × 1)
= 512 + 448 + 48 + 3
= 1011 or (1011)
10
Hexadecimal Number System
A number system made up of sixteen symbols, 0 to 9, and A to F is known as the hexadecimal
number system. In the hexadecimal number system, every number is formed using the digits 0
to 9 and letters A to F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. The base of the
hexadecimal number system is 16. It is also known as the base-16 system. Each position represents
a power of base 16.
The place value of the digits according to position and weight is as follows:
Position 3 2 1 -1 -2
.
Weight 16 2 16 1 16 0 16 -1 16 -2
For Example: (2AF)
16
1
2
0
= (2 × 16 ) + (A × 16 ) + (F × 16 )
= (2 × 256) + (10 × 16) + (15 × 1)
= 512 + 160 + 15
= (687)
10
Info Byte
The hexadecimal number system has made the representation of large values easy.
The hexadecimal numbers are used to represent colours on a webpage, that's why
programmers now prefer hexadecimal numbers. Some examples of colour code are:
Red: #FF0000 Green: #00FF00 Blue: #0000FF
i + DECIMAL TO BINARY CONVERSION
To convert a decimal number into a binary number, follow the given steps: 2 126 0
Step 1: Divide the decimal number by 2 while keeping track of the quotient 2 63 1
and remainder. 2 31 1
Step 2: Continue dividing the quotient by 2 until you get a quotient of less 2 15 1
than 2.
2 7 1
Step 3: Then write the remainder in the reverse order (from bottom to top) to
2 3 1
obtain the binary equivalent.
1
Example: (126)
10
The binary equivalent of 126 is 1111110 or (126) = (1111110)
10 2
24
iPlus (Ver. 2.1)-VII

