Double, a 64-bit IEEE-754 floating point number (equivalent to Java's double primitive type) is a subtype of scala.AnyVal. Instances of Double are not represented by an object in the underlying runtime system.
The companion object provides useful non-primitive operations as extension methods.
Attributes
- Companion
- object
- Source
- Double.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Returns true if this value is not equal to x, false otherwise.
Returns true if this value is not equal to x, false otherwise.
Returns true if this value is not equal to x, false otherwise.
Returns true if this value is not equal to x, false otherwise.
Returns true if this value is not equal to x, false otherwise.
Returns true if this value is not equal to x, false otherwise.
Returns true if this value is not equal to x, false otherwise.
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the remainder of the division of this value by x.
Returns the remainder of the division of this value by x.
Value parameters
- x
-
the divisor
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the product of this value and x.
Returns the product of this value and x.
Value parameters
- x
-
the value to multiply this value by
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the sum of this value and x.
Returns the sum of this value and x.
Value parameters
- x
-
the value to add to this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the difference of this value and x.
Returns the difference of this value and x.
Value parameters
- x
-
the value to subtract from this value
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns the quotient of this value and x.
Returns the quotient of this value and x.
Value parameters
- x
-
the value to divide this value by
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than x, false otherwise.
Returns true if this value is less than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is less than or equal to x, false otherwise.
Returns true if this value is less than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is equal to x, false otherwise.
Returns true if this value is equal to x, false otherwise.
Returns true if this value is equal to x, false otherwise.
Returns true if this value is equal to x, false otherwise.
Returns true if this value is equal to x, false otherwise.
Returns true if this value is equal to x, false otherwise.
Returns true if this value is equal to x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than x, false otherwise.
Returns true if this value is greater than x, false otherwise.
Value parameters
- x
-
the value to compare against this one
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Returns true if this value is greater than or equal to x, false otherwise.
Returns true if this value is greater than or equal to x, false otherwise.
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Attributes
- Source
- Double.scala
Returns this value, unmodified.
Returns the negation of this value.
Concrete methods
Returns the absolute value of this.
Returns the smallest integer greater or equal to this.
Compares this to that according to the standard total ordering.
Compares this to that according to the standard total ordering.
Returns:
- a positive value if
this > that - a negative value if
this < that 0ifthis == that
Special cases for this method:
0.0is considered greater than-0.0NaNis considered greater than all other values, but equal to itself
Attributes
- Source
- Double.scala
Returns the largest integer smaller or equal to this.
Returns true iff this is a finite value, i.e., not an infinity nor NaN.
Returns true iff this is a finite value, i.e., not an infinity nor NaN.
Attributes
- Source
- Double.scala
Returns true iff this is PositiveInfinity or NegativeInfinity.
Returns true iff this is a NaN value.
Returns true iff this is NegativeInfinity.
Returns true iff this is PositiveInfinity.
Returns true iff this has a zero fractional part, and is within the range of scala.Byte MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Byte MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Double.scala
Returns true iff this has a zero fractional part, and is within the range of scala.Char MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Char MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Double.scala
Returns true iff this has a zero fractional part, and is within the range of scala.Int MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Int MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Double.scala
Returns true iff this has a zero fractional part, and is within the range of scala.Short MinValue and MaxValue; otherwise returns false.
Returns true iff this has a zero fractional part, and is within the range of scala.Short MinValue and MaxValue; otherwise returns false.
Attributes
- Source
- Double.scala
Returns '''true''' if this number is finite and has no decimal component.
Returns '''true''' if this number is finite and has no decimal component.
Attributes
- Source
- Double.scala
Returns this if this > that or that otherwise.
Returns this if this < that or that otherwise.
Returns the closest Long to this.
Returns the sign of this.
Returns the sign of this.
1.0ifthis > 0.0;-1.0ifthis < 0.0;thisotherwise (for zeros andNaN).
Attributes
- Source
- Double.scala
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
Attributes
- Returns
-
the measurement of the angle x in degrees.
- Source
- Double.scala
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Attributes
- Returns
-
the measurement of the angle x in radians.
- Source
- Double.scala
Deprecated methods
Attributes
- Deprecated
-
[Since version 2.13.0]Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"` - Source
- Double.scala
Returns the signum of this.
Returns the signum of this.
Attributes
- Deprecated
-
[Since version 2.13.0]signum does not handle -0.0 or Double.NaN; use `sign` method instead - Source
- Double.scala