|
mod
|
The mod function divides two numbers and returns the remainder. The mod
function performs an integer divide, but the result is type Number (See Native Types).
When to use The mod function is analogous to the remainder function in other systems.
It is useful for determining if a number will divide evenly into another number
(the remainder will be zero in this case).
If either argument is complex, only the real part is used in the computation.
(mod dividend divisor) The remainder after computing an integer divide. The result is expressed as a number.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
This example shows how the mod function returns the Number result from
the Integer divide operation it performs on the Numbers in the argument list.
Here are the links to the data types of the function arguments. Here are also a number of links to functions having arguments with any of these data types.
You can always talk with the AIS at aiserver.sourceforge.net.
Name
Description
AIS Types dividend The number to be divided (will be converted to an integer before divide) Number divisor Divide by this number (will be converted to an integer before divide) Number
Returns:
Examples
Argument Types
Number
Integer
How do I contact the AIS team?