compare two floating point values if they are equal after: http://www.lahey.com/float.htm
Parameters: | x : float
y : float or array of floats
precision : float (optional)
|
---|---|
Returns: | out : bool
|
See also
Examples
>>> import spacepy.toolbox as tb
>>> x = 1 + 1e-4
>>> y = 1 + 2e-4
>>> tb.feq(x, y)
False
>>> tb.feq(x, y, 1e-3)
True