double
- Source:
- double.scala
Type members
Types
Remainder of the division of X
by Y
.
Remainder of the division of X
by Y
.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val mod: 5.0 % 2.0 = 1.0
}
- Source:
- double.scala
Multiplication of two Double
singleton types.
Multiplication of two Double
singleton types.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val mul: 4.0 * 2.0 = 8.0
}
- Source:
- double.scala
Addition of two Double
singleton types.
Addition of two Double
singleton types.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val sum: 2.0 + 2.0 = 4.0
}
- Source:
- double.scala
Subtraction of two Double
singleton types.
Subtraction of two Double
singleton types.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val abs: Abs[-1.0] = 1.0
}
- Source:
- double.scala
Maximum of two Double
singleton types.
Maximum of two Double
singleton types.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val max: Max[-1.0, 1.0] = 1.0
}
- Source:
- double.scala
Minimum of two Double
singleton types.
Minimum of two Double
singleton types.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val min: Min[-1.0, 1.0] = -1.0
}
- Source:
- double.scala
Negation of an Double
singleton type.
Negation of an Double
singleton type.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
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.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val x: ToFloat[1.0] = 1.0f
}
- Source:
- double.scala
Int conversion of a Double
singleton type.
Int conversion of a Double
singleton type.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val x: ToInt[1.0] = 1
}
- Source:
- double.scala
Long conversion of a Double
singleton type.
Long conversion of a Double
singleton type.
package scala.compiletime.ops
trait Snippet0 { self: double.type =>
val x: ToLong[1.0] = 1L
}
- Source:
- double.scala