Question

In: Computer Science

In representing -1/4 in IEEE 754, the value of the exponent plus bias (127) is 11111101...

In representing -1/4 in IEEE 754, the value of the exponent plus bias (127) is

11111101

01111101

10000000

01111111

Solutions

Expert Solution

b)  01111101

Explanation:
-------------
-0.25
Converting 0.25 to binary
   Convert decimal part first, then the fractional part
   > First convert 0 to binary
   Divide 0 successively by 2 until the quotient is 0
   Read remainders from the bottom to top as
   So, 0 of decimal is  in binary
   > Now, Convert 0.25000000 to binary
      > Multiply 0.25000000 with 2.  Since 0.50000000 is < 1. then add 0 to result
      > Multiply 0.50000000 with 2.  Since 1.00000000 is >= 1. then add 1 to result
      > This is equal to 1, so, stop calculating
   0.25 of decimal is .01 in binary
   so, 0.25 in binary is 00000000.01
-0.25 in simple binary => .01
so, -0.25 in normal binary is .01 => 1. * 2^-2

single precision:
--------------------
sign bit is 1(-ve)
exponent bits are (127-2=125) => 01111101
   Divide 125 successively by 2 until the quotient is 0
      > 125/2 = 62, remainder is 1
      > 62/2 = 31, remainder is 0
      > 31/2 = 15, remainder is 1
      > 15/2 = 7, remainder is 1
      > 7/2 = 3, remainder is 1
      > 3/2 = 1, remainder is 1
      > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 1111101
   So, 125 of decimal is 1111101 in binary
so, 8-bit exponent is 01111101




Related Solutions

Convert 0.875 to an IEEE 754 single-precision floating-point number. Show the sign bit, the exponent, and...
Convert 0.875 to an IEEE 754 single-precision floating-point number. Show the sign bit, the exponent, and the fraction. Convert -3.875 to an IEEE 754 double-precision floating-point number. Show the sign bit, the exponent, and the fraction Convert the IEEE 754 single-precision floating-point numbers 42E4800016 and 0080000016 to their corresponding decimal numbers.
convert 0x41BA8000 to IEEE-754 floating-point value
convert 0x41BA8000 to IEEE-754 floating-point value
convert 0x41BA8000 to IEEE-754 floating-point value
convert 0x41BA8000 to IEEE-754 floating-point value
convert 0x41BA8000 to IEEE-754 floating-point value
convert 0x41BA8000 to IEEE-754 floating-point value
The biggest mysteries of the IEEE 754 Floating-Point Representation are “hidden bit” and “Bias. Can someone...
The biggest mysteries of the IEEE 754 Floating-Point Representation are “hidden bit” and “Bias. Can someone explain to me why the "hidden bits" and "bias" are considered to be mysteries for the IEEE 754 floating point representation
Using 64-bit IEEE 754 DOUBLE precision floating point with one(1) sign bit, eleven (11) exponent bits...
Using 64-bit IEEE 754 DOUBLE precision floating point with one(1) sign bit, eleven (11) exponent bits and fifty-two (52) mantissa bits, what is the decimal value of: 0xBFE4000000000000
write value of PI(3.14159) in IEEE-754 single-precision format
write value of PI(3.14159) in IEEE-754 single-precision format
Given the following 32-bit binary sequences representing single precision IEEE 754 floating point numbers: a =...
Given the following 32-bit binary sequences representing single precision IEEE 754 floating point numbers: a = 0100 0000 1101 1000 0000 0000 0000 0000 b = 1011 1110 1110 0000 0000 0000 0000 0000 Perform the following arithmetic and show the results in both normalized binary format and IEEE 754 single-precision format. Show your steps. a)     a + b b)     a × b
I have the following decimal value 17.25. How can i convert this to IEEE 754 32...
I have the following decimal value 17.25. How can i convert this to IEEE 754 32 bit single precision floating point and double precision?. I need to use this as a matlab function block in Simulink, therefore i cannot use the conversion of hexadecimal to IEEE 754 32 bit single precision floating point matlab script.
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign...
Recall that a float is stored in the following format: ±sign 1.mantissa • 2^exponent?127 where sign is 1 bit, exponent is 8 bits, and mantissa is 23 bits. Write a C function that accepts an int parameter and returns a float represented by the bits in the int. The 32-bit integer is organized as 1-bit sign, 8-bit exponent, 23-bit mantissa. For example, 0x3F800000 represents 1.0 because the sign bit is 0, the exponent is 127, and the mantissa is all...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT