MOD
The MOD function returns the remainder when a is divided by b, MOD(a,b) = a - int(a/b) * b.
Format
MOD(a,b)Arguments
- a
- Any valid function expression.
- b
- Any valid function expression that does not evaluate to zero.
Example
The example below eliminates full rotations from the angle AX(22,11)
<Reference_Variable
id = "1"
label = "Modulo Example"
type = "EXPRESSION"
expr = "MOD(AX(22,11),2*PI)"
/>
Comments
The MOD function is discontinuous; be very careful when using it.