floating-bits-0.3.0.0: Conversions between floating and integral values.

Safe HaskellNone
LanguageHaskell2010

Data.Bits.Floating.Ulp

Synopsis

Documentation

doubleNextUlp :: Double -> Double Source

Advance a Double by one ULP.

doublePrevUlp :: Double -> Double Source

Subtract one ULP from a Double.

doubleUlp :: Double -> Double Source

Return the distance to the next floating point number.

floatNextUlp :: Float -> Float Source

Advance a Float by one ULP.

floatPrevUlp :: Float -> Float Source

Subtract one ULP from a Float.

floatUlp :: Float -> Float Source

Return the distance to the next floating point number.