Class RealRepresentation.DoubleRep

    • Constructor Detail

      • DoubleRep

        DoubleRep​(double dbl)
        Constructs a newly allocated DoubleRep object that represents the primitive double argument.
        Parameters:
        dbl - the value to be represented by this DoubleRep.
        Throws:
        NumberFormatException - if d is either infinite or not a number.
        See Also:
        Double(double)
      • DoubleRep

        DoubleRep​(String dStr)
        Constructs a newly allocated DoubleRep 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 DoubleRep.
        Throws:
        IllegalArgumentException - if d is either infinite or not a number.
        NumberFormatException - if d has not the appropriate number format.
        See Also:
        Double(String)