Remainder of the division ofX byY.
Remainder of the division ofX byY.
import compiletime.ops.float.*val mod: 5.0f % 2.0f = 1.0fMultiplication of twoFloat singleton types.
Multiplication of twoFloat singleton types.
import compiletime.ops.float.*val mul: 4.0f * 2.0f = 8.0fAddition of twoFloat singleton types.
Addition of twoFloat singleton types.
import compiletime.ops.float.*val sum: 2.0f + 2.0f = 4.0fSubtraction of twoFloat singleton types.
Subtraction of twoFloat singleton types.
import compiletime.ops.float.*val sub: 4.0f - 2.0f = 2.0fInteger division of twoFloat singleton types.
Integer division of twoFloat singleton types.
import compiletime.ops.float.*val div: 5.0f / 2.0f = 2.5fLess-than comparison of twoFloat singleton types.
Less-than comparison of twoFloat singleton types.
import compiletime.ops.float.*val lt1: 4.0f < 2.0f = falseval lt2: 2.0f < 4.0f = trueLess-or-equal comparison of twoFloat singleton types.
Less-or-equal comparison of twoFloat singleton types.
import compiletime.ops.float.*val lt1: 4.0f <= 2.0f = falseval lt2: 2.0f <= 2.0f = trueGreater-than comparison of twoFloat singleton types.
Greater-than comparison of twoFloat singleton types.
import compiletime.ops.float.*val gt1: 4.0f > 2.0f = trueval gt2: 2.0f > 2.0f = falseGreater-or-equal comparison of twoFloat singleton types.
Greater-or-equal comparison of twoFloat singleton types.
import compiletime.ops.float.*val ge1: 4.0f >= 2.0f = trueval ge2: 2.0f >= 3.0f = falseAbsolute value of anFloat singleton type.
Absolute value of anFloat singleton type.
import compiletime.ops.float.*val abs: Abs[-1.0f] = 1.0fMaximum of twoFloat singleton types.
Maximum of twoFloat singleton types.
import compiletime.ops.float.*val max: Max[-1.0f, 1.0f] = 1.0fMinimum of twoFloat singleton types.
Minimum of twoFloat singleton types.
import compiletime.ops.float.*val min: Min[-1.0f, 1.0f] = -1.0fNegation of anFloat singleton type.
Negation of anFloat singleton type.
import compiletime.ops.float.*val neg1: Negate[-1.0f] = 1.0fval neg2: Negate[1.0f] = -1.0fDouble conversion of aFloat singleton type.
Double conversion of aFloat singleton type.
import compiletime.ops.float.*val x: ToDouble[1.0f] = 1.0Int conversion of aFloat singleton type.
Int conversion of aFloat singleton type.
import compiletime.ops.float.*val x: ToInt[1.0f] = 1Long conversion of aFloat singleton type.
Long conversion of aFloat singleton type.
import compiletime.ops.float.*val x: ToLong[1.0f] = 1L