[Haskell-cafe] Re: FFI to double constants, printf
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Fri Jul 17 22:39:35 EDT 2009
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 at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20090717/9170dcd4/PGP.bin
More information about the Haskell-Cafe
mailing list