Copyright  (C) 2016 Marco Zocca 20122015 Edward Kmett 

License  GPL3 (see LICENSE) 
Maintainer  zocca.marco gmail 
Stability  provisional 
Portability  portable 
Safe Haskell  Safe 
Language  Haskell2010 
Testing for values "near" zero
Documentation
class (Floating a, Num a) => Epsilon a where Source #
Provides a test to see if a quantity is near zero.
>>>
nearZero (1e11 :: Double)
False
>>>
nearZero (1e17 :: Double)
True
>>>
nearZero (1e5 :: Float)
False
>>>
nearZero (1e7 :: Float)
True
Epsilon Double Source # 

Epsilon Float Source # 

Epsilon CFloat Source # 

Epsilon CDouble Source # 

Epsilon (Complex Double) Source # 

Epsilon (Complex Float) Source # 

Epsilon (Complex CFloat) Source # 

Epsilon (Complex CDouble) Source # 

roundZeroOne :: Epsilon a => a > a Source #
Round to respectively 0 or 1