Closed laz2 closed 4 months ago
Updated pull request #226.
Changes:
BaseCloseTo
FloatCloseTo
IsCloseTo
DoubleCloseTo
PS. Example of error with additional floating calculations:
public static void main(String[] args) { var f = Math.abs(1.0f - 0.1f); System.out.println(f + " " + (f - 0.5f)); var d = Math.abs(1.0d - 0.1d); System.out.println(d + " " + (d - 0.5d)); }
After run:
0.9 0.39999998 0.9 0.4
Updated pull request #226.
Changes:
BaseCloseTo
for all closeTo matchersFloatCloseTo
matcherIsCloseTo
matcher toDoubleCloseTo
PS. Example of error with additional floating calculations:
After run: