SplitScript reference / Integer / remainder
Integer.remainder
Operator
T.remainder(other: T) -> T where T: Integer
Returns the remainder after integer division.
This method is also the implementation of the % operator. The result has the same sign as the receiver. A zero divisor traps, matching WebAssembly integer arithmetic.
Parameters
other: The divisor.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Test a frame interval
let isInterval = 120u32 % 60 == 0