private static final class RealRepresentation.BigDecimalRep extends RealRepresentation
BigDecimal-value.
It is characterized
by the RealRepresentation.mantissa() and the RealRepresentation.exponent.
The mantissa in turn
splits into the RealRepresentation.integer and the RealRepresentation.fractional part.RealRepresentation.Cutter, RealRepresentation.Desc| Modifier and Type | Field and Description |
|---|---|
private static int |
MAX_FRAC_DIGITS_NO_EXP
The number of digits right of the point
such that the representation is without exponent.
|
private static int |
MAX_INT_DIGITS_NO_EXP
The number of digits left of the point
such that the representation is without exponent.
|
ALIGN_CUT_OFF_LEFT, ALIGN_CUT_OFF_RIGHT, ALIGN_EXCEPTION, ALIGN_LEAVE_UNCHANGED, EXP_CHAR, exponent, fraction, integer, sign| Constructor and Description |
|---|
BigDecimalRep(BigDecimal dec)
Constructs a newly allocated
BigDecimalRep
that represents given BigDecimal argument. |
BigDecimalRep(String dStr)
Constructs a newly allocated
BigDecimalRep object
that represents the floating-point value of type double
represented by the string. |
alignLeft, alignRight, asInteger, compensatePoint, create, create, create, create, exponent, fill, fraction, hasBlankFraction, hasExponent, hasFraction, hasInteger, initSignExp, integer, mantissa, sign, this2BigDecimal, this2double, this2Double, toString, toString, toStringDecomp, trimExponent, trimFraction, trimIntegerprivate static final int MAX_FRAC_DIGITS_NO_EXP
-3 as specified for double's
in Double.toString(double) and is used by
#RealRepresentation.BigDecimalRep(BigDecimal).private static final int MAX_INT_DIGITS_NO_EXP
7 as specified for double's
in Double.toString(double) and is used by
#RealRepresentation.BigDecimalRep(BigDecimal).BigDecimalRep(BigDecimal dec)
BigDecimalRep
that represents given BigDecimal argument.dec - the value to be represented
by this BigDecimalRep.BigDecimalRep(String dStr)
BigDecimalRep object
that represents the floating-point value of type double
represented by the string.
The string is converted to a double value
as if by the method Double.valueOf(java.lang.String).dStr - a string to be converted
to a BigDecimalRep.Double(String)Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.