logfloat-0.13.3.3: Log-domain floating point numbers

CopyrightCopyright (c) 2007--2015 wren gayle romano
LicenseBSD3
Maintainerwren@community.haskell.org
Stabilitystable
Portabilityportable (with CPP)
Safe HaskellSafe
LanguageHaskell98

Hugs.RealFloat

Description

Hugs (September 2006) has buggy definitions for isNaN and isInfinite on Float and Double. If this module is run through CPP with the macro HUGS set to a value no larger than 200609, then correct definitions are used. Otherwise the Prelude definitions are used (which should be correct for other compilers). For example, run Hugs with

hugs -F'cpp -P -DHUGS=200609' Hugs/RealFloat.hs

N.B. The corrected definitions have only been tested to work for Float and Double. These definitions should probably not be used for other RealFloat types.

This installation was compiled with the normal Prelude version. This should be correct.

Documentation

isNaN :: RealFloat a => a -> Bool Source