is_equal#
- static MathUtils.is_equal(a: float, b: float, eps: float = 2.220446049250313e-15) bool #
Return True if numbers a and b are equal within a small epsilon tolerance.
- Parameters:
- a: float
First number.
- b: float
Second number.
- epsfloat
Tolerance for the comparison. Default is
EPSILON
.
- Returns:
- bool
True
if the absolute difference between a and b is less than epsilon,False
otherwise.