List of utility methods to do Float Number Almost Equal
boolean | almostEqual(float a, float b, float maxRelativeError) almost Equal if (Float.isNaN(a) || Float.isNaN(b)) { return false; if (a == b) { return true; float relativeError; if (Math.abs(b) > Math.abs(a)) { ... |
boolean | almostEquals(final float value, final float expected) almost Equals return equals(value, expected, 1E-15f);
|