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).
The mod function computes the remainder from the ratio of the real parts of
the arguments. The modulo of two complex numbers is: (xr + i xi) mod (yr + i yi) = xr % yr
Usage 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.
The mod function is used to find the remainder of the ratio of two numeric
data types where at least one of the arguments is complex. The modulo function is not
widely used in any of the statistical or numerical analysis routines.
Complex
Complex
(mod dividend divisor) The remainder after computing an integer divide. The result is expressed as a number.
Expression:
Arguments
Name
Type
Description Argument: dividend Number
The number to be divided (will be converted to an integer before divide) Argument: divisor Number
Divide by this number (will be converted to an integer before divide)
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
Number | Integer |
Here are also a number of links to functions having arguments with any of these data types.
Analytic Information Server (AIS)AIS Component Systems
|