public final class FloatingPointUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(double d1,
double d2)
Check the equality of two doubles taking into consideration the precision issue of floating point
arithmetic in Java.
|
static boolean |
equals(float f1,
float f2)
Check the equality of two floats taking into consideration the precision issue of floating point
arithmetic in Java.
|
public static boolean equals(float f1,
float f2)
f1 - Float 1.f2 - Float 2.public static boolean equals(double d1,
double d2)
d1 - Double 1.d2 - Double 2.