Board index » cppbuilder » Using _finite() and _isnan()
Victor Hannak
CBuilder Developer |
Victor Hannak
CBuilder Developer |
Using _finite() and _isnan()2003-10-21 05:19:16 AM cppbuilder11 For a given number, if _isfinite() returns true, does that imply that _isnan() must return false? I need a Venn diagram of the floating point qualifiers... :) Thanks |
Peter Strömberg
CBuilder Developer |
2003-10-21 07:46:01 PM
Re:Using _finite() and _isnan()
"Victor Hannak" < XXXX@XXXXX.COM >wrote in
QuoteFor a given number, if _isfinite() returns true, does that imply that -- Peter Strömberg C2K2 C2K3 ISCCIV02 ISCCIV03 |
Daniel Pfeffer
CBuilder Developer |
2003-10-21 07:48:16 PM
Re:Using _finite() and _isnan()
"Victor Hannak" < XXXX@XXXXX.COM >wrote in message
Quote
The following general classifications exist for floating-point numbers: NaN (sign bit ignored) Infinite (positive & negative) Finite (positive and negative) The "finite" range may be further divided into "normal" numbers, "subnormal" numbers and "zero". Each of these ranges may be either positive or negative. If _isnan() is true, all other classification functions should return false. If _isfinite() is true, _isnan() and _isinfinite() should return false. HTH, Daniel Pfeffer {smallsort} |