public class CompareDoubles
extends java.lang.Object
Constructor and Description |
---|
CompareDoubles() |
Modifier and Type | Method and Description |
---|---|
static boolean |
almostEqual(double d1,
double d2)
Returns true if the two given doubles are basically equal (comparing
difference to very small value to get rid of rounding issues)
|
public static boolean almostEqual(double d1, double d2)
d1
- First double valued2
- Second double value