Scala Library: scala.Double
scala.Double
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.
There is an implicit conversion from scala.Double => scala.runtime.RichDouble which provides useful non-primitive operations.
Abstract Value Members From scala.Double
abstract def !=(x: Byte): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def !=(x: Char): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def !=(x: Double): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def !=(x: Float): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def !=(x: Int): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def !=(x: Long): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def !=(x: Short): Boolean
Returns true
if this value is not equal to x, false
otherwise.
(defined at scala.Double)
abstract def %(x: Byte): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def %(x: Char): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def %(x: Double): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def %(x: Float): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def %(x: Int): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def %(x: Long): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def %(x: Short): Double
Returns the remainder of the division of this value by x
.
(defined at scala.Double)
abstract def *(x: Byte): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def *(x: Char): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def *(x: Double): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def *(x: Float): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def *(x: Int): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def *(x: Long): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def *(x: Short): Double
Returns the product of this value and x
.
(defined at scala.Double)
abstract def +(x: Byte): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: Char): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: Double): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: Float): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: Int): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: Long): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: Short): Double
Returns the sum of this value and x
.
(defined at scala.Double)
abstract def +(x: String): String
(defined at scala.Double)
abstract def -(x: Byte): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def -(x: Char): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def -(x: Double): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def -(x: Float): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def -(x: Int): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def -(x: Long): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def -(x: Short): Double
Returns the difference of this value and x
.
(defined at scala.Double)
abstract def /(x: Byte): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def /(x: Char): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def /(x: Double): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def /(x: Float): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def /(x: Int): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def /(x: Long): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def /(x: Short): Double
Returns the quotient of this value and x
.
(defined at scala.Double)
abstract def <(x: Byte): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <(x: Char): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <(x: Double): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <(x: Float): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <(x: Int): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <(x: Long): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <(x: Short): Boolean
Returns true
if this value is less than x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Byte): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Char): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Double): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Float): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Int): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Long): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def <=(x: Short): Boolean
Returns true
if this value is less than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Byte): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Char): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Double): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Float): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Int): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Long): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def ==(x: Short): Boolean
Returns true
if this value is equal to x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Byte): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Char): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Double): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Float): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Int): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Long): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >(x: Short): Boolean
Returns true
if this value is greater than x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Byte): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Char): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Double): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Float): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Int): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Long): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
abstract def >=(x: Short): Boolean
Returns true
if this value is greater than or equal to x, false
otherwise.
(defined at scala.Double)
Concrete Value Members From scala.Double
abstract def toByte: Byte
(defined at scala.Double)
Concrete Value Members From Implicit scala.LowPriorityImplicits.doubleWrapper
def compare(y: Double): Int
Result of comparing this
with operand that
.
Implement this method to determine how instances of A will be sorted.
Returns x
where:
x < 0
whenthis < that
x == 0
whenthis == that
-
x > 0
whenthis > that
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- OrderedProxy → Ordered
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def compareTo(that: Double): Int
Result of comparing this
with operand that
.
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- Ordered → Comparable
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def max(that: Double): Double
Returns this
if this > that
or that
otherwise.
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- RichDouble → ScalaNumberProxy
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def min(that: Double): Double
Returns this
if this < that
or that
otherwise.
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- RichDouble → ScalaNumberProxy
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def to(end: Double): Partial[Double, NumericRange[Double]]
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- FractionalProxy → RangedProxy
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def to(end: Double, step: Double): Inclusive[Double]
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- FractionalProxy → RangedProxy
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def until(end: Double): Partial[Double, NumericRange[Double]]
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- FractionalProxy → RangedProxy
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
def until(end: Double, step: Double): Exclusive[Double]
- Implicit information
- This member is added by an implicit conversion from Double to RichDouble performed by method doubleWrapper in scala.LowPriorityImplicits.
- Definition Classes
- FractionalProxy → RangedProxy
(added by implicit convertion: scala.LowPriorityImplicits.doubleWrapper)
Concrete Value Members From Implicit scala.Predef.double2Double
def compareTo(arg0: java.lang.Double): Int
- Implicit information
- This member is added by an implicit conversion from Double to java.lang.Double performed by method double2Double in scala.Predef.
- Definition Classes
- Double → Comparable (added by implicit convertion: scala.Predef.double2Double)
Full Source:
Interested in Scala?
I send out weekly, personalized emails with articles and conference talks.
Subscribe now.