Question

In: Computer Science

Write the IEEE floating point representation (single precision) of 3.75 (Show all your steps to get...

Write the IEEE floating point representation (single precision) of 3.75 (Show all your steps to get full credit).

Solutions

Expert Solution

Converting 3.75 to binary
   Convert decimal part first, then the fractional part
   > First convert 3 to binary
   Divide 3 successively by 2 until the quotient is 0
      > 3/2 = 1, remainder is 1
      > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 11
   So, 3 of decimal is 11 in binary
   > Now, Convert 0.75 to binary
      > Multiply 0.75 with 2.    Since 1.5 is >= 1. then add 1 to result
      > Multiply 0.5 with 2.     Since 1.0 is >= 1. then add 1 to result
      > This is equal to 1, so, stop calculating
   0.75 of decimal is .11 in binary
   so, 3.75 in binary is 11.11
3.75 in simple binary => 11.11
so, 3.75 in normal binary is 11.11 => 1.111 * 2^1

single precision:
--------------------
sign bit is 0(+ve)
exp bits are (127+1=128) => 10000000
   Divide 128 successively by 2 until the quotient is 0
      > 128/2 = 64, remainder is 0
      > 64/2 = 32, remainder is 0
      > 32/2 = 16, remainder is 0
      > 16/2 = 8, remainder is 0
      > 8/2 = 4, remainder is 0
      > 4/2 = 2, remainder is 0
      > 2/2 = 1, remainder is 0
      > 1/2 = 0, remainder is 1
   Read remainders from the bottom to top as 10000000
   So, 128 of decimal is 10000000 in binary
frac bits are 11100000000000000000000

so, 3.75 in single-precision format is 0 10000000 11100000000000000000000
in hexadecimal it is 0x40700000

Related Solutions

Using IEEE 754 single precision floating point, write the hexadecimal representation for each of the following:...
Using IEEE 754 single precision floating point, write the hexadecimal representation for each of the following: a. Zero b. -2.0 (base 10) c. 256. 0078125 (base 10) d. Negative infinity
For IEEE 754 single-precision floating point, what is the hexadecimal representation of 27.101562? A. 35CCD001 B....
For IEEE 754 single-precision floating point, what is the hexadecimal representation of 27.101562? A. 35CCD001 B. 2F5C10D0 C. 41D8D000 D. 7DCA1111 E. None of the above
Convert the following decimal numbers into their 32-bit floating point representation (IEEE single precision). You may...
Convert the following decimal numbers into their 32-bit floating point representation (IEEE single precision). You may use a calculator to do the required multiplications, but you must show your work, not just the solution. 1. -59.75 (ANSW: 11000010011011110000000000000000) 2. 0.3 (ANSW: 00111110100110011001100110011010 (rounded) 00111110100110011001100110011001 (truncated; either answer is fine)) Please show all work
Concert the following 32-bit floating point number (IEEE single precision) into their decimal representation. 1100 0101...
Concert the following 32-bit floating point number (IEEE single precision) into their decimal representation. 1100 0101 0001 1111 1000 0000 0000 0000 (ANSW: -2552.0) Please show all work
Represent (10.375)10 as single precision IEEE 754, show all the steps
Represent (10.375)10 as single precision IEEE 754, show all the steps
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 0xCD001234 from IEEE-754 hexadecimal to single-precision floating point format. Please show every single detail for...
Convert 0xCD001234 from IEEE-754 hexadecimal to single-precision floating point format. Please show every single detail for upvote. Please do not answer otherwise.
Determine the IEEE single and double floating point representation of the following numbers: a) -26.25 b)...
Determine the IEEE single and double floating point representation of the following numbers: a) -26.25 b) 15/2
Convert 1101.11011101 x 223 to IEEE Standard 754 for single-precision floating-point binary format. Convert the IEEE...
Convert 1101.11011101 x 223 to IEEE Standard 754 for single-precision floating-point binary format. Convert the IEEE Standard 754 number 11001010100011010101000000000000 to its decimal equivalent.
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give...
2. a) Represent the decimal value 47.375 as a single precision IEEE floating point number. Give your answer in hexadecimal and show your work. b) Represent the decimal value 47.375 as a double precision IEEE floating point number. Give your answer in hexadecimal and show your work.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT