- <init>
Constructor that allows either double or float precision.
- between
See if value is between two other values, including almost equality
- cmp
Check order of two numbers, within precision.
- equal
See if two numbers are almost equal.
- hashCode
- hashCodeOf
Return a hashcode consistent with imprecise floating-point equality. Integers
and Longs require exac
- zero
See if the number is almost zero
- divide
Safely divide one number by another. Handle zeros and infinity. Never throws
floating point exceptio
- equals
- getEpsilon
Get the smallest positive number that can be added to 1 before the number is
considered different fr
- getMinValue
Get the smallest positive value that should be distinguished from zero.
- le
Check whether first number is less than or equal to second.