Class Flag4jConstants

java.lang.Object
org.flag4j.util.Flag4jConstants

public final class Flag4jConstants extends Object
A simple utility class containing useful constants.
  • Field Details

    • EPS_F32

      public static final float EPS_F32
      The rounding error for 32-bit floating point numbers.
    • SAFE_MIN_F32

      public static final double SAFE_MIN_F32
      The smallest "safe" 32-bit floating point value. That is, the smallest possible float value such that 1.0f / SAFE_MIN_F32 does not overflow.
      See Also:
    • OVERFLOW_THRESH_F32

      public static final double OVERFLOW_THRESH_F32
      Overflow threshold for 42-bit floating point values. Equivalent to Float.MAX_VALUE.
      See Also:
    • EPS_F64

      public static final double EPS_F64
      The rounding error for 64-bit double precision floating point numbers.
    • SAFE_MIN_F64

      public static final double SAFE_MIN_F64
      The smallest "safe" 64-bit floating point value. That is, the smallest possible double value such that 1.0d / SAFE_MIN_F64 does not overflow.
      See Also:
    • OVERFLOW_THRESH_F64

      public static final double OVERFLOW_THRESH_F64
      Overflow threshold for 64-bit floating point values. Equivalent to Double.MAX_VALUE.
      See Also: