Packages

final class DD extends Serializable with Comparable[DD] with Cloneable

Creates a new DoubleDouble with value 0.0.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DD
  2. Cloneable
  3. Comparable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DD(dd: DD)

    Creates a new DoubleDouble with value equal to the argument.

    Creates a new DoubleDouble with value equal to the argument.

    dd

    the value to initialize

  2. new DD(x: Double)

    Creates a new DoubleDouble with value x.

    Creates a new DoubleDouble with value x.

    x

    the value to initialize

  3. new DD(hi: Double = 0.0, lo: Double = 0.0)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def abs: DD

    Returns the absolute value of this value.

    Returns the absolute value of this value. Special cases:

    • If this value is NaN, it is returned.

    return the absolute value of this value

  5. final def add(y: Double): DD
  6. final def add(y: DD): DD

    Returns a new DoubleDouble whose value is (this + y).

    Returns a new DoubleDouble whose value is (this + y).

    y

    the addend return (this + y)

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def ceil: DD

    Returns the smallest (closest to negative infinity) value that is not less than the argument and is equal to a mathematical integer.

    Returns the smallest (closest to negative infinity) value that is not less than the argument and is equal to a mathematical integer. Special cases:

    • If this value is NaN, returns NaN.

    return the smallest (closest to negative infinity) value that is not less than the argument and is equal to a mathematical integer.

  9. def clone(): AnyRef

    Creates and returns a copy of this value.

    Creates and returns a copy of this value.

    return a copy of this value

    Definition Classes
    DD → AnyRef
  10. def compareTo(other: DD): Int

    Compares two DoubleDouble objects numerically.

    Compares two DoubleDouble objects numerically.

    return -1,0 or 1 depending on whether this value is less than, equal to or greater than the value of o

    Definition Classes
    DD → Comparable
  11. final def divide(y: Double): DD
  12. final def divide(y: DD): DD

    Computes a new DoubleDouble whose value is (this / y).

    Computes a new DoubleDouble whose value is (this / y).

    y

    the divisor return a new object with the value (this / y)

  13. def doubleValue: Double

    Converts this value to the nearest double-precision number.

    Converts this value to the nearest double-precision number.

    return the nearest double-precision number to this value

  14. def dump: String

    Dumps the components of this number to a string.

    Dumps the components of this number to a string.

    return a string showing the components of the number

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(y: DD): Boolean

    Tests whether this value is equal to another DoubleDouble value.

    Tests whether this value is equal to another DoubleDouble value.

    y

    a DoubleDouble value return true if this value = y

  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. def floor: DD

    Returns the largest (closest to positive infinity) value that is not greater than the argument and is equal to a mathematical integer.

    Returns the largest (closest to positive infinity) value that is not greater than the argument and is equal to a mathematical integer. Special cases:

    • If this value is NaN, returns NaN.

    return the largest (closest to positive infinity) value that is not greater than the argument and is equal to a mathematical integer.

  20. def ge(y: DD): Boolean

    Tests whether this value is greater than or equals to another DoubleDouble value.

    Tests whether this value is greater than or equals to another DoubleDouble value.

    y

    a DoubleDouble value return true if this value >= y

  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def gt(y: DD): Boolean

    Tests whether this value is greater than another DoubleDouble value.

    Tests whether this value is greater than another DoubleDouble value.

    y

    a DoubleDouble value return true if this value > y

  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def intValue: Int

    Converts this value to the nearest integer.

    Converts this value to the nearest integer.

    return the nearest integer to this value

  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isNaN: Boolean

    Tests whether this value is NaN.

    Tests whether this value is NaN.

    return true if this value is NaN

  27. def isNegative: Boolean

    Tests whether this value is less than 0.

    Tests whether this value is less than 0.

    return true if this value is less than 0

  28. def isPositive: Boolean

    Tests whether this value is greater than 0.

    Tests whether this value is greater than 0.

    return true if this value is greater than 0

  29. def isZero: Boolean

    Tests whether this value is equal to 0.

    Tests whether this value is equal to 0.

    return true if this value is equal to 0

  30. def le(y: DD): Boolean

    Tests whether this value is less than or equal to another DoubleDouble value.

    Tests whether this value is less than or equal to another DoubleDouble value.

    y

    a DoubleDouble value return true if this value <= y

  31. def lt(y: DD): Boolean

    Tests whether this value is less than another DoubleDouble value.

    Tests whether this value is less than another DoubleDouble value.

    y

    a DoubleDouble value return true if this value < y

  32. def max(x: DD): DD

    Computes the maximum of this and another DD number.

    Computes the maximum of this and another DD number.

    x

    a DD number return the maximum of the two numbers

  33. def min(x: DD): DD

    Computes the minimum of this and another DD number.

    Computes the minimum of this and another DD number.

    x

    a DD number return the minimum of the two numbers

  34. final def multiply(y: Double): DD
  35. final def multiply(y: DD): DD

    Returns a new DoubleDouble whose value is (this * y).

    Returns a new DoubleDouble whose value is (this * y).

    y

    the multiplicand return (this * y)

  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def negate: DD

    Returns a new DoubleDouble whose value is -this.

    Returns a new DoubleDouble whose value is -this.

    return -this

  38. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. def pow(exp: Int): DD

    Computes the value of this number raised to an integral power.

    Computes the value of this number raised to an integral power. Follows semantics of Java Math.pow as closely as possible.

    exp

    the integer exponent return x raised to the integral power exp

  41. final def reciprocal: DD

    Returns a DoubleDouble whose value is 1 / this.

    Returns a DoubleDouble whose value is 1 / this.

    return the reciprocal of this value

  42. def rint: DD

    Rounds this value to the nearest integer.

    Rounds this value to the nearest integer. The value is rounded to an integer by adding 1/2 and taking the floor of the result. Special cases:

    • If this value is NaN, returns NaN.

    return this value rounded to the nearest integer

  43. final def selfAdd(y: Double): DD
  44. final def selfAdd(y: DD): DD

    Adds the argument to the value of this.

    Adds the argument to the value of this. To prevent altering constants, this method must only be used on values known to be newly created.

    y

    the addend return this object, increased by y

  45. final def selfDivide(y: Double): DD
  46. final def selfDivide(y: DD): DD

    Divides this object by the argument, returning this.

    Divides this object by the argument, returning this. To prevent altering constants, this method must only be used on values known to be newly created.

    y

    the value to divide by return this object, divided by y

  47. final def selfMultiply(y: Double): DD
  48. final def selfMultiply(y: DD): DD

    Multiplies this object by the argument, returning this.

    Multiplies this object by the argument, returning this. To prevent altering constants, this method must only be used on values known to be newly created.

    y

    the value to multiply by return this object, multiplied by y

  49. def selfSqr: DD

    Squares this object.

    Squares this object. To prevent altering constants, this method must only be used on values known to be newly created.

    return the square of this value.

  50. final def selfSubtract(y: Double): DD
  51. final def selfSubtract(y: DD): DD

    Subtracts the argument from the value of this.

    Subtracts the argument from the value of this. To prevent altering constants, this method must only be used on values known to be newly created.

    y

    the addend return this object, decreased by y

  52. def setValue(value: Double): DD

    Set the value for the DD object.

    Set the value for the DD object. This method supports the mutating operations concept described in the class documentation (see above).

    value

    a floating point value to be stored in the instance. return a self-reference to the DD instance.

  53. def setValue(value: DD): DD

    Set the value for the DD object.

    Set the value for the DD object. This method supports the mutating operations concept described in the class documentation (see above).

    value

    a DD instance supplying an extended-precision value. return a self-reference to the DD instance.

  54. def signum: Int

    Returns an integer indicating the sign of this value.

    Returns an integer indicating the sign of this value.

    • if this value is > 0, returns 1
    • if this value is < 0, returns -1
    • if this value is = 0, returns 0
    • if this value is NaN, returns 0

    return an integer indicating the sign of this value

  55. def sqr: DD
  56. def sqrt: DD

    Computes the positive square root of this value.

    Computes the positive square root of this value. If the number is NaN or negative, NaN is returned.

    return the positive square root of this number. If the argument is NaN or less than zero, the result is NaN.

  57. final def subtract(y: Double): DD
  58. final def subtract(y: DD): DD

    Computes a new DoubleDouble object whose value is (this - y).

    Computes a new DoubleDouble object whose value is (this - y).

    y

    the subtrahend return (this - y)

  59. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  60. def toString(): String
    Definition Classes
    AnyRef → Any
  61. def trunc: DD

    Returns the integer which is largest in absolute value and not further from zero than this value.

    Returns the integer which is largest in absolute value and not further from zero than this value. Special cases:

    • If this value is NaN, returns NaN.

    return the integer which is largest in absolute value and not further from zero than this value

  62. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  63. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  64. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Cloneable

Inherited from Comparable[DD]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped