public final class FloatUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
EPSILON
The delta that is still acceptable in float comparisons.
|
| Constructor and Description |
|---|
FloatUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEqualInEpsilon(float x,
float y)
Floats can't hold any value (see https://www.geeksforgeeks.org/rounding-off-errors-java/).
|
public static final double EPSILON
public static boolean isEqualInEpsilon(float x,
float y)
x - left valuey - right valueCopyright © 2022. All rights reserved.