|
modi
|
The modi function divides two numbers and returns the remainder. The modi
function performs an integer divide, and the result is type Integer (See Native Types).
When to use The modi 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).
(modi 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 modi function divides two numbers and returns the remainder
as an Integer Data Type.
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?