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] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university    KF8NH


Attachment: PGP.sig
Description: This is a digitally signed message part

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to