Log
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Return the natural logarithm (base e = 2.7182818...) of an integer or real number.
Syntax
Log(x)
Arguments
-
x
Must be an integer or real number greater than zero
Returns
The natural logarithm of x
Exceptions
If x is zero or negative, or not a number, returns an error value
Example
-
Log(14)
[Returns 2.6391]
-
Log(TagVal('att1', '14-Dec-16'))
[Return the natural log of the value of 'att1' at 12:00am on Dec 14, 2016]