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)

Abs

  • Last UpdatedJan 11, 2023
  • 1 minute read

Return the absolute value of an integer or real number.

Syntax

Abs(x)

Arguments

  • x

    An integer or real number

Returns

The absolute value of x

Exceptions

Return an error value if x is not an integer or real number

Notes

Unit of measure of the argument, if it exists, is carried over to the result

Example

  • Abs(-2.2)

    [Returns 2.2]

  • Abs('att1')

    [Return the absolute value of 'att1' at trigger time]

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