Class IEEEDouble
java.lang.Object
org.xlsx4j.org.apache.poi.ss.util.IEEEDouble
For working with the internals of IEEE 754-2008 'binary64' (double precision) floating point numbers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe value the exponent field gets for all NaN and Infinity valuesstatic final intprivate static final longprivate static final intstatic final longstatic final long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
EXPONENT_MASK
private static final long EXPONENT_MASK- See Also:
-
EXPONENT_SHIFT
private static final int EXPONENT_SHIFT- See Also:
-
FRAC_MASK
public static final long FRAC_MASK- See Also:
-
EXPONENT_BIAS
public static final int EXPONENT_BIAS- See Also:
-
FRAC_ASSUMED_HIGH_BIT
public static final long FRAC_ASSUMED_HIGH_BIT- See Also:
-
BIASED_EXPONENT_SPECIAL_VALUE
public static final int BIASED_EXPONENT_SPECIAL_VALUEThe value the exponent field gets for all NaN and Infinity values- See Also:
-
-
Constructor Details
-
IEEEDouble
IEEEDouble()
-
-
Method Details
-
getBiasedExponent
public static int getBiasedExponent(long rawBits) - Parameters:
rawBits- the 64 bit binary representation of the double value- Returns:
- the top 12 bits (sign and biased exponent value)
-