Friday, September 26, 2008

Floating-point: Bit Value of INF, NAN, DEN

I have every write a post and mentioned a little bit about the binary format of IEEE 754 in Comparison of Float and Double Precision. In this post I made a table to indicate the details of bit values for the IEEE 754 32bit single-precision float, the bit values of some special floating point value, including Zero, One, Minus One, Smallest denormalized number, "Middle" denormalized number, Largest denormalized number, Smallest normalized number, Largest normalized number, Positive infinity, Negative infinity, Not a number (NaN).

Capture 2008-09-26 13.12.57

In the column "Watch in Windows", I put what I can see from the watch window in Visual Studio 2008 (Visual C++ Environment).