Class MutableFPNumber
java.lang.Object
org.xlsx4j.org.apache.poi.ss.util.MutableFPNumber
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final classHolds values for quick multiplication and division by 10 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate BigIntegerprivate static final BigIntegerFor 'Base-10 normalised form'
The maximum#_fracvalue when_binaryExponent== 49 (10^15-0.5) * 2^14private static final BigIntegerThe minimum value in 'Base-10 normalised form'.
When_binaryExponent== 46 this is the the minimum#_fracvalue (1014-0.05) * 2^17
Values between (1014-0.05) and 1014 will be represented as '1' followed by 14 zeros.private static final intWidth of a longprivate static final intMinimum precision after discarding whole 32-bit words from the significand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()createNormalisedDecimal(int pow10) intbooleanbooleanprivate voidmulShift(BigInteger multiplicand, int multiplierShift) voidmultiplyByPowerOfTen(int pow10) void
-
Field Details
-
BI_MIN_BASE
The minimum value in 'Base-10 normalised form'.
When_binaryExponent== 46 this is the the minimum#_fracvalue (1014-0.05) * 2^17
Values between (1014-0.05) and 1014 will be represented as '1' followed by 14 zeros. Values less than (1014-0.05) will get shifted by one more power of 10 This frac value rounds to '1' followed by fourteen zeros with an incremented decimal exponent -
BI_MAX_BASE
For 'Base-10 normalised form'
The maximum#_fracvalue when_binaryExponent== 49 (10^15-0.5) * 2^14 -
C_64
private static final int C_64Width of a long- See Also:
-
MIN_PRECISION
private static final int MIN_PRECISIONMinimum precision after discarding whole 32-bit words from the significand- See Also:
-
_significand
-
_binaryExponent
private int _binaryExponent
-
-
Constructor Details
-
MutableFPNumber
-
-
Method Details
-
copy
-
normalise64bit
public void normalise64bit() -
get64BitNormalisedExponent
public int get64BitNormalisedExponent() -
isBelowMaxRep
public boolean isBelowMaxRep() -
isAboveMinRep
public boolean isAboveMinRep() -
createNormalisedDecimal
-
multiplyByPowerOfTen
public void multiplyByPowerOfTen(int pow10) -
mulShift
-
createExpandedDouble
-