public interface Numbers
The
Numbers
interface defines some constants of interest related to
the various number types available.-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
The maximum safe integer when floating point is involved, e.g. this maximum integer value can be stored without loss in a double value.static final long
The minimum safe integer when floating point is involved, e.g. this minimum integer can be stored without loss in a double value.static final int
The number of bytes required to store a value in the bounds [MIN_SAFE_INTEGER
..MAX_SAFE_INTEGER
].
-
Field Details
-
MIN_SAFE_INTEGER
static final long MIN_SAFE_INTEGERThe minimum safe integer when floating point is involved, e.g. this minimum integer can be stored without loss in a double value. Evaluated to -2^53.- See Also:
-
MAX_SAFE_INTEGER
static final long MAX_SAFE_INTEGERThe maximum safe integer when floating point is involved, e.g. this maximum integer value can be stored without loss in a double value. Evaluates to 2^53-1.- See Also:
-
SAFE_INTEGER_BYTES
static final int SAFE_INTEGER_BYTESThe number of bytes required to store a value in the bounds [MIN_SAFE_INTEGER
..MAX_SAFE_INTEGER
].- See Also:
-