|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
Functions for interrogating binary64 (double) values.
More...
Static Public Member Functions | |
| static long | unpackGetExponentUnbiased (final double d) |
| static long | unpackGetSignificand (final double d) |
| static long | unpackGetSign (final double d) |
Functions for interrogating binary64 (double) values.
Definition at line 35 of file Binary64.java.
|
static |
Extract and unbias the exponent of the given packed double value.
The exponent is encoded biased as a number in the range [0, 2047], with 0 indicating that the number is subnormal and [1, 2046] denoting the actual exponent plus BIAS. Infinite and NaN values always have a biased exponent of 2047.
This function will therefore return:
0 - BIAS = -1023 iff the input is a subnormal number. [1 - BIAS, 2046 - BIAS] = [-1022, 1023] iff the input is a normal number. 2047 - BIAS = 1024 iff the input is POSITIVE_INFINITY, NEGATIVE_INFINITY, or NaN. Definition at line 82 of file Binary64.java.
|
static |
Return the sign of the given double value.
Definition at line 110 of file Binary64.java.
|
static |
Return the significand of the given double value.
Definition at line 97 of file Binary64.java.