final class DD extends Serializable with Comparable[DD] with Cloneable
Creates a new DoubleDouble with value 0.0.
- Alphabetic
- By Inheritance
- DD
- Cloneable
- Comparable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- new DD(x: Double)
Creates a new DoubleDouble with value x.
Creates a new DoubleDouble with value x.
- x
the value to initialize
- new DD(hi: Double = 0.0, lo: Double = 0.0)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- final def add(y: Double): DD
- 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)
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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.
- 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
- 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
- final def divide(y: Double): DD
- 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)
- 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
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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.
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intValue: Int
Converts this value to the nearest integer.
Converts this value to the nearest integer.
return the nearest integer to this value
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNaN: Boolean
Tests whether this value is NaN.
Tests whether this value is NaN.
return true if this value is NaN
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- final def multiply(y: Double): DD
- 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)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def negate: DD
Returns a new DoubleDouble whose value is -this.
Returns a new DoubleDouble whose value is -this.
return -this
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- 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
- 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
- final def selfAdd(y: Double): DD
- 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
- final def selfDivide(y: Double): DD
- 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
- final def selfMultiply(y: Double): DD
- 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
- 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.
- final def selfSubtract(y: Double): DD
- 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
- 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.
- 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.
- 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
- def sqr: DD
- 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.
- final def subtract(y: Double): DD
- 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)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()