Re: Floating Point Numbers
- From: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
- Date: Mon, 23 Oct 2006 20:04:02 -0700
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
.
- Follow-Ups:
- Re: Floating Point Numbers
- From: Bjorn Reese
- Re: Floating Point Numbers
- References:
- Floating Point Numbers
- From: bob
- Floating Point Numbers
- Prev by Date: Re: Floating Point Numbers
- Next by Date: Re: Floating Point Numbers
- Previous by thread: Re: Floating Point Numbers
- Next by thread: Re: Floating Point Numbers
- Index(es):