Class DoubleDouble

    • Constructor Detail

      • DoubleDouble

        public DoubleDouble​(double hi,
                            double lo)
        Construct a new DoubleDouble value consisting of a high (most significant) part and a low (least significant) part.
        Parameters:
        hi - double; the high part of the DoubleDouble value
        lo - double; the low part of the DoubleDouble value
      • DoubleDouble

        public DoubleDouble​(double value)
        Construct a new DoubleDouble value using one double, where the lo part of the DoubleDouble will be 0.
        Parameters:
        value - double; the high part of the DoubleDouble value
    • Method Detail

      • valueOf

        public static DoubleDouble valueOf​(String s)
        Construct a DoubleDouble from a String value.
        Parameters:
        s - String; the String value to be parsed
        Returns:
        a DoubleDouble value representing s with as many correct digits as possible
      • intValue

        public int intValue()
        Specified by:
        intValue in class Number
      • longValue

        public long longValue()
        Specified by:
        longValue in class Number
      • floatValue

        public float floatValue()
        Specified by:
        floatValue in class Number
      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in class Number