CS301 – Fall
2003
Prof. Hartman
Homework #2
Due Monday September 29^{th}
by 4:45 pm
 Complete
the following table:
Fractional form

Binary

Decimal

5/6




1010.010




2.2

 Convert
0.6 to IEEE single precision format.
 Convert
BEEF0000h from IEEE single precision floating point format to a decimal
number.
 The
number 4,000,000 can be represented exactly in IEEE single precision
format. What is the next largest floating point value that can be
represented exactly in IEEE single precision format? Give both its decimal
value and it’s IEEE representation.
 What are the largest and smallest values IEEE single precision
format can represent? (Hint – there is really only one question
here!) You must show the IEEE format for the number, and write the base 2
scientific notation for the number, but you don’t need to figure out its
decimal value.
 Write
C (or C++) code to change the sign of a floating point number without using arithmetic. Use only
bitwise operations. (This is a one liner!)