Package com.jogamp.opengl.math
Class Binary64
- java.lang.Object
-
- com.jogamp.opengl.math.Binary64
-
public final class Binary64 extends Object
Functions for interrogatingbinary64
(double) values.
-
-
Constructor Summary
Constructors Constructor Description Binary64()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long
unpackGetExponentUnbiased(double d)
Extract and unbias the exponent of the given packeddouble
value.static long
unpackGetSign(double d)
Return the sign of the given double value.static long
unpackGetSignificand(double d)
Return the significand of the given double value.
-
-
-
Method Detail
-
unpackGetExponentUnbiased
public static long unpackGetExponentUnbiased(double d)
Extract and unbias the exponent of the given packed
double
value.The exponent is encoded biased as a number in the range
[0, 2047]
, with0
indicating that the number is subnormal and[1, 2046]
denoting the actual exponent plusBIAS
. Infinite andNaN
values always have a biased exponent of2047
.This function will therefore return:
- See Also:
#packSetExponentUnbiasedUnchecked(int)
-
unpackGetSignificand
public static long unpackGetSignificand(double d)
Return the significand of the given double value.
-
unpackGetSign
public static long unpackGetSign(double d)
Return the sign of the given double value.
-
-