Navigation
Main Page
Random Page
Create a new Page
All Pages
Categories
Administration
File Management
Login/Logout
Language Selection
Your Profile
Create Account
Quick Search
Advanced Search »
Back
History
mod
'''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: [image|mod1|{UP}Functions/mod/mod1.png] 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: [image|mod1|{UP}Functions/mod/mod2.png] 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.{BR} Thus 5.5-2.0*2.0=1.5 Return to '''[Functions|Functions]''' page
ScrewTurn Wiki
version 2.0.37. Some of the icons created by
FamFamFam
.