Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Numerical tolerance for "near-0" tests
Rounding operations
almostZero :: Double -> Bool Source #
Rounding rule
withDefault :: (t -> Bool) -> t -> t -> t Source #
with2Defaults :: (t -> Bool) -> (t -> Bool) -> t -> t -> t -> t Source #
roundZeroOne :: Double -> Double Source #
Round to respectively 0 or 1 within some predefined numerical precision eps