ABS
- Last UpdatedMar 03, 2025
- 1 minute read
The ABS() function produces a stream of results calculating the absolute value of a stream, converting negative values into positive values.
Syntax
|
Format |
Stream = ABS( Stream ) |
|
Arguments |
Stream - A stream of values |
|
Description |
Returns a stream that is a copy of the input stream, with all negative values converted to positive values. |
Example 1
The following expression returns the difference between the flow rates of two temperatures.
ABS(PLPWeather.NewYorkTemperature - PLPWeather.LosAngelesTemperature )
The following images show the difference between a standard difference versus an ABS() difference:

