mod

Modified: 2010/07/19 11:35 by TheWizEd - Categorized as: English
mod('number','number') - Modulo function

The function is used to determine the remainder of the division of first argument by the second argument. Both arguments must be real numbers.

This can be represented as:

mod1

where a is the first argument and n is the second. a divided by n is rounded down to the closest whole number.

The following is an example of the mod function:

mod1

The value 5.5 is divided by 2.0 which is 2.75 which is then rounded down to the nearest whole number of 2.
Thus 5.5-2.0*2.0=1.5

Return to Functions page

ScrewTurn Wiki version 2.0.37. Some of the icons created by FamFamFam.