Class Flag4jConstants
java.lang.Object
org.flag4j.util.Flag4jConstants
A simple utility class containing useful constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float
The rounding error for 32-bit floating point numbers.static final double
The rounding error for 64-bit double precision floating point numbers.static final double
Overflow threshold for 42-bit floating point values.static final double
Overflow threshold for 64-bit floating point values.static final double
The smallest "safe" 32-bit floating point value.static final double
The smallest "safe" 64-bit floating point value. -
Method Summary
-
Field Details
-
EPS_F32
public static final float EPS_F32The rounding error for 32-bit floating point numbers. -
SAFE_MIN_F32
public static final double SAFE_MIN_F32The smallest "safe" 32-bit floating point value. That is, the smallest possible float value such that1.0f / SAFE_MIN_F32
does not overflow.- See Also:
-
OVERFLOW_THRESH_F32
public static final double OVERFLOW_THRESH_F32Overflow threshold for 42-bit floating point values. Equivalent toFloat.MAX_VALUE
.- See Also:
-
EPS_F64
public static final double EPS_F64The rounding error for 64-bit double precision floating point numbers. -
SAFE_MIN_F64
public static final double SAFE_MIN_F64The smallest "safe" 64-bit floating point value. That is, the smallest possible double value such that1.0d / SAFE_MIN_F64
does not overflow.- See Also:
-
OVERFLOW_THRESH_F64
public static final double OVERFLOW_THRESH_F64Overflow threshold for 64-bit floating point values. Equivalent toDouble.MAX_VALUE
.- See Also:
-