Pow
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Return x raised to the power y.
Syntax
Pow(x, y)
Arguments
-
x
numeric value
-
y
numeric value
Returns
The value of x raised to the power y
Exceptions
None
Notes
-
The Pow function only works in PI Asset Framework (PI AF) asset analytics expression functions. Use caret (^) operator for same effect in Data Archive performance equations
-
Both and 2^3 are acceptable in PI AF asset analytics expression functions
Example
-
Pow(2, 3)
[Returns 8]
-
Pow(2.5, 3)
[Returns 15.625]
-
Pow(TagVal('att1', '*'), 8)
[Return the current value of 'att1' raised to the power 8]