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:
        java.lang.NumberFormatException - if d is either infinite or not a number.
        See Also:
        Double(double)
      • DoubleRep

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

        DoubleRep​(java.lang.Double dbl)
        Creates a new DoubleRep. An analog to DoubleRep(double).
        Parameters:
        dbl - a Double object.
        Throws:
        java.lang.IllegalArgumentException - if d is either infinite or not a number.