Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Analytics and Notifications for PI System Explorer (PI Server 2018)

Mod

  • Last UpdatedJan 11, 2023
  • 1 minute read

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]

In This Topic
TitleResults for “How to create a CRG?”Also Available in