double
- Source:
- double.scala
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
- Source:
- double.scala
Multiplication of two Double
singleton types.
Multiplication of two Double
singleton types.
import compiletime.ops.double._
val mul: 4.0 * 2.0 = 8.0
- Source:
- double.scala
Addition of two Double
singleton types.
Addition of two Double
singleton types.
import compiletime.ops.double._
val sum: 2.0 + 2.0 = 4.0
- Source:
- double.scala
Subtraction of two Double
singleton types.
Subtraction of two Double
singleton types.
import compiletime.ops.double._
val sub: 4.0 - 2.0 = 2.0
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
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
- Source:
- double.scala
Int conversion of a Double
singleton type.
Int conversion of a Double
singleton type.
import compiletime.ops.double._
val x: ToInt[1.0] = 1
- Source:
- double.scala
Long conversion of a Double
singleton type.
Long conversion of a Double
singleton type.
import compiletime.ops.double._
val x: ToLong[1.0] = 1L
- Source:
- double.scala