Re: Floating Point Numbers



bob@xxxxxxxxxxxxxx writes:

I was reading this on Floating Point Numbers:

http://steve.hollasch.net/cgindex/coding/ieeefloat.html

I began to wonder... how do you know if your numbers are normalized or
denormalized?

If your computer uses IEEE floating-point format, numbers in the
denormalized range (except for zero) are denormalized, and other
numbers are normalized. The article specifies the ranges.

In C, (x != 0.0 && fabs(x) < DBL_MIN) will detect denormalized
numbers in IEEE format.

It's possible that I'm slightly off on some of this, but I'm
confident that I'll be corrected if so.
--
Ben Pfaff
email: blp@xxxxxxxxxxxxxxx
web: http://benpfaff.org
.