
On Jul 17, 2009, at 22:27 , Maurí cio wrote:
Is there maybe some way to check if a double or long double do have a "proper" value?
isNaN :: a -> Bool True if the argument is an IEEE "not-a-number" (NaN) value isInfinite :: a -> Bool True if the argument is an IEEE infinity or negative infinity isDenormalized :: a -> Bool True if the argument is too small to be represented in normalized format isNegativeZero :: a -> Bool True if the argument is an IEEE negative zero isIEEE :: a -> Bool True if the argument is an IEEE floating point number (in Prelude, even. Class RealFloat) -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH