Wilang Documentation1.0.0+4

mod#

Calculates the modulus, the remainder of an integer division.

Available in: math cells, REPL.

Syntax#

x % y
x mod y
mod(x, y)

Arguments and behavior#

Use the callable form shown in the example. Matrix dimensions must agree for matrix operations. Scalar comparison produces a boolean.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
mod(11,4)

Expected result: 3.

See also#

divide

All functions · Math guides