Mod
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2018
- PI Server
The modulus operator (mod) returns the remainder from the quotient of two numeric values. For x Mod y, this is the remainder from x/y.
Syntax
x Mod y
Arguments
-
x
Any expression that evaluates to a numeric value
-
y
Any non-zero numeric value
Returns
Remainder from x/y
Exceptions
None
Notes
UOM of x, if it exists, is carried over to the result
Example
-
11 Mod 3
[Returns 2]