public final class DoubleUtilities
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static int |
EXPONENT_BIAS |
(package private) static long |
EXPONENT_MASK |
(package private) static long |
IMPLICIT_BIT |
(package private) static long |
SIGN_MASK |
(package private) static int |
SIGNIFICAND_BITS |
(package private) static long |
SIGNIFICAND_MASK |
Modifier and Type | Method and Description |
---|---|
static double |
bigToDouble(java.math.BigInteger x)
Convert a BigInteger to a double using a fast implementation.
|
(package private) static double |
ensureNonNegative(double value)
Returns its argument if it is non-negative, zero if it is negative.
|
(package private) static long |
getSignificand(double d) |
(package private) static boolean |
isFinite(double d) |
(package private) static boolean |
isNormal(double d) |
(package private) static double |
nextDown(double d) |
(package private) static double |
scaleNormalize(double x) |
static final long SIGNIFICAND_MASK
static final long EXPONENT_MASK
static final long SIGN_MASK
static final int SIGNIFICAND_BITS
static final int EXPONENT_BIAS
static final long IMPLICIT_BIT
static double nextDown(double d)
static long getSignificand(double d)
static boolean isFinite(double d)
static boolean isNormal(double d)
static double scaleNormalize(double x)
public static double bigToDouble(java.math.BigInteger x)
x
- The BigInteger to be converted.static double ensureNonNegative(double value)
value
- The value to be checked.