Mod (Function) — Skript
Addon: Skript · Category: Function
Syntax
mod(d: number, m: number) :: numberDescription
Returns the modulo of the given arguments, i.e. the remainder of the division <code>d/m</code>, where d and m are the arguments of this function. The returned value is always positive. Returns NaN (not a number) if the second argument is zero.
Examples
mod(3, 2) = 1
mod(256436, 100) = 36
mod(-1, 10) = 9