Professional Documents
Culture Documents
NEUB CSE 221 Lect Slide 1
NEUB CSE 221 Lect Slide 1
Number Binary
Zero 0
One 1
Two 10
Three 11
Four 100
July 2 2020 SHP 10
Binary Numbers (Cont’d)
101012 = 10101B = 1×24+0×23+1×22+0×21+1×20 = 16+4+1= 21
Symbol Value
A 10
B 11
C 12
D 13
E 14
F 15
July 2 2020 SHP 16
First 21 Hexadecimal Numbers
Number Hexadecimal
Zero 0 Number Hexadecimal
One 1 Eleven B
Two 2 Twelve C
Three 3 Thirteen D
Four 4 Fourteen E
Five 5 Fifteen F
Six 6 Sixteen 10
Seven 7 Seventeen 11
Eight 8 Eighteen 12
Nine 9 Nineteen 13
Ten A Twenty 14
July 2 2020 SHP 17
Hexadecimal Numbers (Cont’d)
Example of value of hexadecimal strings:
2816 = 28H = 2×161+8×160 = 40
F 2 B
= FX162 + 2X161 + BX160
=15X256 + 2X16 + 11X1
= 3840 + 32 + 11
=388310
• Repeat Steps 3 and 4, getting remainders from right to left, until the
quotient becomes zero in Step 3.
• The last remainder thus obtained will be the Most Significant Digit (MSD)
of the new base number.
July 2 2020 SHP 28
Decimal Number: 2910 Calculating Binary Equivalent