klyn.Int.operator%=
method
public native static operator%=( readonly a as Int, readonly b as Int ) as Void
Description

Replaces a with the remainder of a divided by b.

Parameters
ParameterDescription
aMutable target value.
bDivisor.
Throws
  • ZeroDivisionError if the divisor equals 0 at runtime.
Example
value = 10
value %= 3
assert value == 1