Reference to the mod() function
Summary
mod(<base-tsExpression>, <div-tsExpression>[, inner])
Modulo arithmetic function.
Parameters
| Parameter | Description |
|---|---|
| base-tsExpression | Expression describing a constant or a time series to divide by the second expression. |
| div-tsExpression | Expression to use as the divisor. |
| inner | Results in an inner join. |
Description
The mod() returns the remainder after dividing one number by another. For example, mod(10, 3) returns 1 and mod(4, 2) returns 0.
Either or both parameters may describe a time series or a constant value, and either may be fractional or negative.