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
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!
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
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)
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 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 explain calculations Now calculate the largest number and smallest number for a 10 bit floating point (1 bit for the sign, 4 bits exponent and 5 bits mantissa)
The following set of decimal numbers need to be stored in fixed point representation. 0.1875, -2.5,...
The following set of decimal numbers need to be stored in fixed point representation. 0.1875, -2.5, -0.75, 3.0625 Find the Q number format that can represent all of the numbers exactly, i.e. with zero error. Show your analysis.
Question 1: A. Convert the following numbers to their decimal representation. Show your work. 1. 100110112...
Question 1: A. Convert the following numbers to their decimal representation. Show your work. 1. 100110112 =
 2. 4567 =
 3. 38A16 = 4. 22145 = B. Convert the following numbers to their binary representation: 1. 6910 =
 2. 48510=
 3. 6D1A16 = C. Convert the following numbers to their hexadecimal representation: 1. 11010112 =
 2. 89510 = Question 2: Solve the following, do all calculation in the given base. Show your work.
Convert the following decimal numbers into IEEE single precision format. Give your answer in hexadecimal. Show...
Convert the following decimal numbers into IEEE single precision format. Give your answer in hexadecimal. Show all work A) -15.5625 B) 10.9375
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT