Portability  portable 

Stability  provisional 
Maintainer  Edward Kmett <ekmett@gmail.com> 
Safe Haskell  SafeInferred 
Testing for values near zero
Documentation
class Num a => Epsilon a whereSource
Provides a fairly subjective 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 

Epsilon Float 

(Num (V2 a), Epsilon a) => Epsilon (V2 a)  
(Num (V3 a), Epsilon a) => Epsilon (V3 a)  
(Num (V4 a), Epsilon a) => Epsilon (V4 a)  
(Num (Plucker a), Epsilon a) => Epsilon (Plucker a)  
(Num (Quaternion a), RealFloat a, Epsilon a) => Epsilon (Quaternion a) 