ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: mod

mod(n, m) returns the remainder when the integer n is divided by the integer m.

Example: mod(12, 5) = 2

For general arguments x and y, mod(x, y) adds an integer multiple of y to x so that the result lies within [0, y].

Example: mod(14.71, π/2) = 0.572833058846