Skip to content

Mod

Command Summary Command Syntax Calculator Compatibility
Returns the modulo of value1 with respect to value2 mod(value1, value2) If this is only available on certain versions of the nspire

Describe how to get the command from a menu.

Mod

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 nspire: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

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.

Authors: KG