-
public interface Numbers
TheNumbers
interface defines some constants of interest related to the various number types available.
-
-
Field Summary
Fields Modifier and Type Field Description static long
MAX_SAFE_INTEGER
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 long
MIN_SAFE_INTEGER
The minimum safe integer when floating point is involved, e.g. this minimum integer can be stored without loss in a double value.static int
SAFE_INTEGER_BYTES
The number of bytes required to store a value in the bounds [MIN_SAFE_INTEGER
..MAX_SAFE_INTEGER
].
-
-
-
Field Detail
-
MIN_SAFE_INTEGER
static final long MIN_SAFE_INTEGER
The 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:
- Constant Field Values
-
MAX_SAFE_INTEGER
static final long MAX_SAFE_INTEGER
The 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:
- Constant Field Values
-
SAFE_INTEGER_BYTES
static final int SAFE_INTEGER_BYTES
The number of bytes required to store a value in the bounds [MIN_SAFE_INTEGER
..MAX_SAFE_INTEGER
].- See Also:
- Constant Field Values
-
-