|
imod
|
The imod function divides two integers and returns the remainder expressed
as an integer. The imod function does not perform type checking or type
conversion on the operands.
When to use The imod built-in function is used to determine if an integer will divide
evenly into another number (the remainder will be zero in this case).
Some software vendors supply function libraries may have a function named
remainder that performs the same action as imod. An alternate function,
is the modi function, which performs type checking and type conversion on
numeric operands.
(imod int1 int2) The remainder after the integer division. The result is expressed as an integer.
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
These examples show the imod function perform division on the Integer arguments
and returns the remainder of the Integer division.
The function does not operate on non-Integer arguments.
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 int1 An Integer dividend. Integer int2 The Integer divisor. Integer
Returns:
Examples
Argument Types
Number
Integer
How do I contact the AIS team?