Double

scala.Double
See theDouble companion object
final abstract class Double() extends AnyVal

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.

Attributes

Companion
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Abstract methods

def !=(x: Byte): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def !=(x: Short): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def !=(x: Char): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def !=(x: Int): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def !=(x: Long): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def !=(x: Float): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def !=(x: Double): Boolean

Returns true if this value is not equal to x, false otherwise.

Returns true if this value is not equal to x, false otherwise.

Attributes

def %(x: Byte): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def %(x: Short): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def %(x: Char): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def %(x: Int): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def %(x: Long): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def %(x: Float): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def %(x: Double): Double

Returns the remainder of the division of this value by x.

Returns the remainder of the division of this value by x.

Attributes

def *(x: Byte): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def *(x: Short): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def *(x: Char): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def *(x: Int): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def *(x: Long): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def *(x: Float): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def *(x: Double): Double

Returns the product of this value and x.

Returns the product of this value and x.

Attributes

def +(x: Byte): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def +(x: Short): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def +(x: Char): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def +(x: Int): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def +(x: Long): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def +(x: Float): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def +(x: Double): Double

Returns the sum of this value and x.

Returns the sum of this value and x.

Attributes

def -(x: Byte): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def -(x: Short): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def -(x: Char): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def -(x: Int): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def -(x: Long): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def -(x: Float): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def -(x: Double): Double

Returns the difference of this value and x.

Returns the difference of this value and x.

Attributes

def /(x: Byte): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def /(x: Short): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def /(x: Char): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def /(x: Int): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def /(x: Long): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def /(x: Float): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def /(x: Double): Double

Returns the quotient of this value and x.

Returns the quotient of this value and x.

Attributes

def <(x: Byte): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <(x: Short): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <(x: Char): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <(x: Int): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <(x: Long): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <(x: Float): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <(x: Double): Boolean

Returns true if this value is less than x, false otherwise.

Returns true if this value is less than x, false otherwise.

Attributes

def <=(x: Byte): Boolean

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

def <=(x: Short): Boolean

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

def <=(x: Char): Boolean

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

def <=(x: Int): Boolean

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

def <=(x: Long): Boolean

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

def <=(x: Float): Boolean

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

def <=(x: Double): Boolean

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

def ==(x: Byte): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def ==(x: Short): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def ==(x: Char): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def ==(x: Int): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def ==(x: Long): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def ==(x: Float): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def ==(x: Double): Boolean

Returns true if this value is equal to x, false otherwise.

Returns true if this value is equal to x, false otherwise.

Attributes

def >(x: Byte): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >(x: Short): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >(x: Char): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >(x: Int): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >(x: Long): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >(x: Float): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >(x: Double): Boolean

Returns true if this value is greater than x, false otherwise.

Returns true if this value is greater than x, false otherwise.

Attributes

def >=(x: Byte): Boolean

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

def >=(x: Short): Boolean

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

def >=(x: Char): Boolean

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

def >=(x: Int): Boolean

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

def >=(x: Long): Boolean

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

def >=(x: Float): Boolean

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

def >=(x: Double): Boolean

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

def toByte: Byte
def toChar: Char
def toFloat: Float
def toInt: Int
def toLong: Long
def toShort: Short

Returns this value, unmodified.

Returns this value, unmodified.

Attributes

Returns the negation of this value.

Returns the negation of this value.

Attributes

Deprecated methods

def +(x: String): String

Attributes

Deprecated
[Since version 2.13.0] Adding a number and a String is deprecated. Use the string interpolation `s\"$num$str\"`