Mod
sample.png

Command Summary

Returns the modulo of value1 with respect to value2

Command Syntax

mod(value1, value2)

This command returns the modulo of two numbers. This is defined as the remainder when value1 is divided by value2. This command is identical to the remain command, which returns the remainder of the dividend.

mod(12,5) = 2

mod(8,2) = 0

mod(64, 15) = 4

Error Conditions

Error conditions still need to be added to this command page

Related Commands

Several (around 3) commands have a similar function or are used in a similar context to this command. Make a bulleted list of them, with links to the other commands' pages. It will often be the case that several commands all link to each other.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.