Class RealRepresentation.BigDecimalRep

    • Field Detail

      • MAX_FRAC_DIGITS_NO_EXP

        private static final int MAX_FRAC_DIGITS_NO_EXP
        The number of digits right of the point such that the representation is without exponent. This evaluates to -3 as specified for double's in Double.toString(double) and is used by BigDecimalRep(BigDecimal).
        See Also:
        Constant Field Values
      • MAX_INT_DIGITS_NO_EXP

        private static final int MAX_INT_DIGITS_NO_EXP
        The number of digits left of the point such that the representation is without exponent. This evaluates to 7 as specified for double's in Double.toString(double) and is used by BigDecimalRep(BigDecimal).
        See Also:
        Constant Field Values
    • Constructor Detail

      • BigDecimalRep

        BigDecimalRep​(java.math.BigDecimal dec)
        Constructs a newly allocated BigDecimalRep that represents given BigDecimal argument.
        Parameters:
        dec - the value to be represented by this BigDecimalRep.
      • BigDecimalRep

        BigDecimalRep​(java.lang.String dStr)
        Constructs a newly allocated 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).
        Parameters:
        dStr - a string to be converted to a BigDecimalRep.
        See Also:
        Double(String)