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