0% found this document useful (0 votes)
20 views2 pages

Decimal Conversion of Number Bases

The document discusses number base systems and converting between decimal, binary, octal, and hexadecimal numbering systems. It includes problems involving 8-bit and 16-bit floating point number representation.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Decimal Conversion of Number Bases

The document discusses number base systems and converting between decimal, binary, octal, and hexadecimal numbering systems. It includes problems involving 8-bit and 16-bit floating point number representation.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

AQ010-3-1-MCFC Number Base System

(1) Convert all the following answers in decimal (base 10):


(a) 1011012 (b) 5678 (c) AB116 (d) 1010.1012
(e) 562.18 (f) 121.A16 (g) 277.5428 (h) 23.15

(2) Convert all the following answers in binary (base 2):


(a) 1278 (b) 7710 (c) 9916 (d) DA.316
(e) 12.510 (f) 32.678 (g) 43.216 (h) 107.2510
(i) 101110102 + 11111012 (j) 1010001012 - 111112
(k) 11111012 + 1010112 – 10111112

(3) Convert all the following answers in octal (base 8):


(a) 8310 (b) 10110112 (c) 1011101.112 (d) AB16
(e) A1F2.C16 (f) 6758 + 7718 (g) 5310 - 508 (h) 10258 - 7738
(i) 23458 – 12348 + 78 – 5128 + 628 (j) 101012 + 9A316
(k) 1648 + 658 – 528

(4) Convert all the following answers in hexadecimal (base 16):


(a) 10101112 (b) 146.138 (c) 11001.011012 (d) 124.562510
(e) AB.CD16 + E5.2F16 (f) C5.A216 – A7.B316 (g) 93716 + 37258
(h) 100.0116 – 142.310(round to 2 decimal digit) (i) 30.48 – 111.11012
(j) 83A7F4.5D16 + B5B63.3E16 (k) [12358 – (7168+ 1048)] + 25616

(5) Using 8-bit register, convert the following decimal numbers to binary and find the 1’s
and 2’s complements.
(a) 1510 (b) 5310 (c) 11510 (d) 9510

(6) Using two’s complement in 8-bit register, show how the computer would evaluate
(a) 0001 11012 – 0001 01012 (b) 0011 11012 – 0001 01112
(c) 0111 11002 – 0111 01012 (d) 1110 – 2510 (e) –1110 – 2510
(f) 2510 – 1110 (g) 3210 – 1310 (h) –1010 – 510

(7) A computer stores the floating number in 16 bit where 1 bit for the sign, 6 bits for the
exponent having a biased or (+31) and mantissa has a hidden bit.
(a) Show how those floating-point values would be represented in that computer.
(i) 12.7510
(ii) –6.0312510
(iii) 8.62510
5
(iv)
16 10
(b) If the computer represents a number as
(i) 1100 1011 1000 00002,
(ii) 0100 1111 0111 01012
(iii) 0011 1101 0111 01012
what is the decimal value of this number?

(8) A computer stores the floating number in 32 bit where 1 bit for the sign, 8 bits for the
exponent having a biased or (+127) and mantissa has a hidden bit. Show how those
floating-point values would be represented in that computer.
(i) 27.7510
(ii) -37.87510

Level 1 Asia Pacific University of Technology & Innovation Page 1 of 2


AQ010-3-1-MCFC Number Base System

(a) If the computer represents a number as


1 10000010 111101100000000000000002,
what is the decimal value of this number?
(b) If the computer represents a number as C210000016, what is the decimal value of
this number?

Level 1 Asia Pacific University of Technology & Innovation Page 2 of 2

Common questions

Powered by AI

The sign bit is 1 (negative). The exponent is 10000010, which is 130 decimal; subtracting the bias (127) gives 3. The mantissa is 1.111011 (binary), representing 1.921875. Thus, the value is -1.921875 × 2^3 = -15.375 .

In an 8-bit two's complement system, subtraction is performed by adding the two's complement of the subtrahend to the minuend. For 0001 11012 (2910) and 0001 01012 (2110), first find the two's complement of 0001 01012 which is 1110 1011. Then add it to 0001 1101: (0001 1101 + 1110 1011 = 0000 1000), resulting in 810 .

To convert 10101011 to hexadecimal, group the binary digits into sets of four from the right: 1010 and 1011. Convert each group to hexadecimal: 1010 is 'A' and 1011 is 'B'. Therefore, the hexadecimal representation is AB16 .

Subtraction in two's complement is done by adding the complement of the subtrahend. 0011 1101 (6110) minus 0001 0111 (2310) involves the complement of 0001 0111, which is 1110 1001. Add it to 0011 1101: (0011 1101 + 1110 1001 = 0010 0110), resulting in 3810 .

First, convert to binary and normalize: -6.03125 is negative, so sign=1; in binary, 6.03125 is 110.00001. As normalized, it's 1.1000001 × 2^2. The exponent (2) is stored with a +31 bias, thus: 33 or 100001 in binary. Mantissa: 1000001. Therefore, the representation is 1 100001 1000001000 .

First, convert 27.75 to binary: 11011.11. Normalizing gives 1.101111 × 2^4. The exponent is stored as 4 + 127 = 131, which is 10000011 in binary. The sign bit is 0 for positive. The mantissa is 10111100000000000000000 (23 bits, omitting the leading '1'). Thus, it's stored as: 0 10000011 10111100000000000000000 .

To convert 1510 into binary using an 8-bit register, we start by repeatedly dividing the number by 2 and recording the remainders. The binary equivalent of 1510 is 0000 1111. The 1's complement is obtained by flipping all bits, resulting in 1111 0000. For the 2's complement, we add 1 to the 1's complement, giving 1111 0001 .

The hexadecimal C2100000 is converted by expanding as powers of 16: C (12) × 16^7 + 2 × 16^6 + 1 × 16^5 + 0 × 16^4 and so on. Calculating gives: 3,257,433,600 in decimal .

Align binary numbers: 10111010 + 01111101 (pad with leading zeros for alignment). Add from right: 1 + 0 = 1, 0 + 1 = 1, 1 + 1 = 0 (carry 1), and so on. Final result is 1001101112 .

First, in binary, 12.75 is 1100.11. Normalizing, we get 1.10011 × 2^3. Since the exponent is 3, in 6-bit with a bias of +31, it's represented as 3 + 31 = 34, which is 100010. Since the number is positive, the sign bit is 0. Thus, the 16-bit representation is 0 100010 1001100000 .

You might also like