User Tools

Site Tools


modding:function:modulus

modulus.

modulus

modulus

Syntax (modulus dividend divisor) → remainder
Argument List dividend: The dividend of the two numbers.
divisor: The divisor of the two numbers.
Returns remainder: The remainder of the two numbers passed
Category math
Description Finds the remainder of the two numbers and returns it.

Example

(modulus 3 2)

This code will return 1.

(modulus 56 34)

This code will return 22.

(modulus 10 4)

This code will return 2.

IMPORTANT: This function is now named 'modulo'. Please see that entry instead.

Return to Functions list

modding/function/modulus.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1