mod

Operators
Name: mod

Category: Operators

Description:
    Calculates the modulus, the remainder of an integer division.

Syntax:
    x % y
    x mod y
    mod(x, y)

Examples:
    7 % 3
        1
    11 % 2
        1
    10 mod 4
        2
    isOdd(x) = x % 2
        isOdd(x)
    isOdd(2)
        0
    isOdd(3)
        1

See also: divide