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