double
Type members
Types
Multiplication of two Double
singleton types.
Multiplication of two Double
singleton types.
val mul: 4.0 * 2.0 = 8.0
Addition of two Double
singleton types.
Addition of two Double
singleton types.
val sum: 2.0 + 2.0 = 4.0
Subtraction of two Double
singleton types.
Subtraction of two Double
singleton types.
val sub: 4.0 - 2.0 = 2.0
Integer division of two Double
singleton types.
Integer division of two Double
singleton types.
val div: 5.0 / 2.0 = 2.5
Less-than comparison of two Double
singleton types.
Less-than comparison of two Double
singleton types.
val lt1: 4.0 < 2.0 = false
val lt2: 2.0 < 4.0 = true
Less-or-equal comparison of two Double
singleton types.
Less-or-equal comparison of two Double
singleton types.
val lt1: 4.0 <= 2.0 = false
val lt2: 2.0 <= 2.0 = true
Greater-than comparison of two Double
singleton types.
Greater-than comparison of two Double
singleton types.
val gt1: 4.0 > 2.0 = true
val gt2: 2.0 > 2.0 = false
Greater-or-equal comparison of two Double
singleton types.
Greater-or-equal comparison of two Double
singleton types.
val ge1: 4.0 >= 2.0 = true
val ge2: 2.0 >= 3.0 = false
Absolute value of an Double
singleton type.
Absolute value of an Double
singleton type.
val abs: Abs[-1.0] = 1.0
Maximum of two Double
singleton types.
Maximum of two Double
singleton types.
val max: Max[-1.0, 1.0] = 1.0
Minimum of two Double
singleton types.
Minimum of two Double
singleton types.
val min: Min[-1.0, 1.0] = -1.0
Negation of an Double
singleton type.
Negation of an Double
singleton type.
val neg1: Negate[-1.0] = 1.0
val neg2: Negate[1.0] = -1.0
Float conversion of a Double
singleton type.
Float conversion of a Double
singleton type.
val x: ToFloat[1.0] = 1.0f