Fundamentals of Computers: Reema Thareja
Fundamentals of Computers: Reema Thareja
Computers
Reema Thareja
Decimal number = 1 × 23 + 1 × 22 + 0 × 21 + 1 × 20
=1×8+1×4+0×2+1×1
=8+4+0+1
= 13
•Subtrahend = 1001
Decimal number = 1 × 82 + 2 × 81 + 3 × 80
= 1 × 64 + 2 × 8 + 3 × 1
= 64 + 16 + 3
= 83
= 3 × 4096 + 1 × 256 + 2 × 16 + B × 1
= 12288 + 256 + 32 + 11
= 12587
• Pad the binary number with leading zeroes (if necessary), so that it
contains multiples of 4 bits
• Convert the binary number 01101110010110 into its hexadecimal
equivalent
▪ After padding the binary number is 0001 1011 1001 0110
▪ Substitute the appropriate hexadecimal digits for a group of
four binary digits
▪ The equivalent hex number = 1B96
1110)2
= 1 × 16 + 0 × 8 + 1 × 4 + 1 × 2 + 0 × 1 +
1 × 1/2 + 1 × 1/4 + 1 × 1/8 + 0 × 1/16
= 22.875
= 1 × 64 + 2 × 8 + 7 × 1 + 3 × 1/8 + 5 × 1/64
= 64 + 16 + 7 + 0.375 + 0.078125
= 87.453125