Investment Studio > Expressions > Functions > Math & Trig > MOD
integer mod(integer numerator, integer denominator)
Returns the remainder after the numerator is divided by the denominator.
In other words, mod(A, B) = A quotient(A, B) * B.
mod is also available as an operator.
Examples
=mod(5, 3)
equals 2
=mod(-5, 3)
equals -2
=mod(5, -3)
equals 2
=mod(-5, -3)
equals -2.