Question

Represent the following decimal numbers using IEEE-754 floating point representation. please show all work i. -0.75...

Represent the following decimal numbers using IEEE-754 floating point representation. please show all work

i. -0.75

ii. 0

iii. - infinity

iv. 23

v. 10.25

Homework Answers

Answer #1

In Single Point IEEE-754 Floating Point Representation:

Sign = 1 bit

Exponent = 8 bits

Mantissa = 23 bits

In Single Point IEEE-754 Floating Point Representation:

Sign = 1 bit

Exponent = 11 bits

Mantissa = 52 bits

i) -0.75

Convert the number into binary form:

(0.75)10 =(0.11)2

                = 1.1 * 2-1

Sign = 1 (as the number is negative)

Single Precision Representation:

Biased exponent = 127+(-1) = 126

126 = 01111110

Normalised matissa = 1

The IEEE 754 Single Precision : 1 01111110 100000000000000000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = BF400000

Double Precision Representation:

Biased exponent = 1023+(-1) = 1022

1022 = 1111111110

Normalised Mantissa = 1

The IEEE 754 Double Precision : 1 01111111110 1000000000000000000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits)

Hexadecimal Representation: BFE8000000000000

ii) 0

Convert the number into binary form:

(0)10 =(0)2

                = 0

Sign = 0 (as the number is positive)

Single Precision Representation:

The IEEE 754 Single Precision : 0 00000000 000000000000000000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = 00000000

Double Precision Representation:

The IEEE 754 Double Precision : 0 00000000000 0000000000000000000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits)

Hexadecimal Representation: 0000000000000000

iii) - infinity

It cannot be converted to any form as it is boundless and is something that is unknown and is something that can be larger or smaller than any number that is known.

iv) 23

Convert the number into binary form:

(23)10 =(10111)2

                = 1.0111 * 24

Sign = 0 (as the number is positive)

Single Precision Representation:

Biased exponent = 127+(4) = 131

131 = 10000011

Normalised matissa = 0111

The IEEE 754 Single Precision : 0 10000011 011100000000000000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = 41B80000

Double Precision Representation:

Biased exponent = 1023+(4) = 1027

1027 = 10000000011

Normalised Mantissa = 0111

The IEEE 754 Double Precision : 0 10000000011 0111000000000000000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits)

Hexadecimal Representation: 4037000000000000

v) 10.25

Convert the number into binary form:

(10)10 =(1010)2

(0.25)10 = (01)2

     10.25 = 1010.01

               = 1.01001 * 23

Sign = 0 (as the number is positive)

Single Precision Representation:

Biased exponent = 127+(3) = 130

130 = 10000010

Normalised matissa = 01001

The IEEE 754 Single Precision : 0 10000010 01001000000000000000000

(add 0's to normalised matissa to make it 23 bits)

Hexadecimal Representation = 41240000

Double Precision Representation:

Biased exponent = 1023+(3) = 1026

1026 = 10000000010

Normalised Mantissa = 01001

The IEEE 754 Double Precision : 0 10000000010 0100100000000000000000000000000000000000000000000000

(add 0's to normalised matissa to make it 52 bits)

Hexadecimal Representation: 4024800000000000

 
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Convert the decimal number 1283.181 to IEEE 754 floating point format. Show all work.
Convert the decimal number 1283.181 to IEEE 754 floating point format. Show all work.
Find the single-precision IEEE 754 representation of 0.752. Please show all work/steps.
Find the single-precision IEEE 754 representation of 0.752. Please show all work/steps.
Convert the following binary floating point number 100101.1001010101 using IEEE-756 single precision representation Plz show work,...
Convert the following binary floating point number 100101.1001010101 using IEEE-756 single precision representation Plz show work, thanks!
Convert the following floating-point number (stored using IEEE floating-point standard 754) to a binary number in...
Convert the following floating-point number (stored using IEEE floating-point standard 754) to a binary number in non-standard form. 1100_0100_1001_1001_1000_0000_0000_0000
Using the IEEE single-precision floating point representation, find the decimal number represented by the following 32-bit...
Using the IEEE single-precision floating point representation, find the decimal number represented by the following 32-bit numbers, each expressed as an 8-digit hex number. Express your answer using decimal scientific notation. (a) (C6500000)16 (b) (31200000)16
Given the following pair of decimal numbers: A = 2.6125 x 101 and B = 4.150390625...
Given the following pair of decimal numbers: A = 2.6125 x 101 and B = 4.150390625 x 10-1 a) Compute the binary representation of both A and B using the IEEE-754 single precision floating- point format. b) Compute A+B in binary using the IEEE-754 single precision floating-point format.
Assuming a 5-bit IEEE (754 standard) floating-point format where 1 bit is used for the sign,...
Assuming a 5-bit IEEE (754 standard) floating-point format where 1 bit is used for the sign, 3 bits for the exponent, and 1 bit for the fraction, write the formulas for the exponent E, the significand M, the fraction f, and the value V for the quantities that follow and also describe the bit representation. Please show all steps to receive full credit. The number 5.0 The largest odd integer that can be represented exactly The reciprocal of the smallest...
Using the 32-bit binary representation for floating point numbers, represent the number 10111001100112 as a 32...
Using the 32-bit binary representation for floating point numbers, represent the number 10111001100112 as a 32 bit floating point number.
Matlab uses IEEE double precision numbers: 64-bit floating point representation 1 bit : sign 11 bits:...
Matlab uses IEEE double precision numbers: 64-bit floating point representation 1 bit : sign 11 bits: exponent 52 bits: mantissa. Calculate largest number (less than inf) that can be stored accurately Calculate smallest number (x>0) that can be stored accurately Calculate the machine epsilon Show all work step by step and repeat for 10 bit floating point (bit sign, 4 bits exponent and 5 bits mantissa)
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned...
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned binary representation, convert 12 (D) to binary. Show work. 4. Assuming 9-bit two’s complement representation and let x be binary representation of 94 (D) a. Find x. Show work. b. Show the effect of the ASL operation on x, and then convert the result back to decimal. c. Show the effect of the ASR operation on x, and then convert the result back to...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT