roughlyEquals

public static boolean roughlyEquals(double one, double two, double accuracy)

This returns whether a specified value is within a second specified value by plus/minus a specified accuracy amount.

Return

returns if the two numbers are within the specified accuracy of each other.

Parameters

one

first number specified.

two

Second number specified.

accuracy

the level of accuracy specified.


public static boolean roughlyEquals(double one, double two)

This returns whether a specified number is within a second specified number by plus/minus 0.0001.

Return

returns if a specified number is within plus/minus 0.0001 of the second specified number.

Parameters

one

first number specified.

two

second number specified.