$mod
Computes the modulus of the input value.
Options¶
input
(required) The dividend. Must be numeric.mod
(optional) The divisor. Must be numeric. Default720
.
Example¶
{ "modulus": { "$mod": 721 } }
{ "modulus10": { "$mod": { "input": 14, "mod": 10 } } }
{ "modulus": 1 }
{ "modulus10": 4 }