1

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

Posted September 26th, 2008 in General C++, Numeral and tagged by Mason

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).

One Response so far.

  1. Big Qiao says:

    so, how to avoid denormalized number(2.225e-308#DEN)

Leave a Reply