Scalar FunctionsMath Functions
abs
Returns the absolute value of a numeric or timespan expression.
An int widens to long; long, real and timespan keep their type.
Syntax
abs(x)Parameters
Prop
Type
Returns: real
Syntax
abs(x)Parameters
Prop
Type
Returns: timespan
Examples
Example 1
print abs(-3.14)| print_0 (real) |
|---|
| 3.14 |
Example 2
print abs(-90m)| print_0 (timespan) |
|---|
| 01:30:00 |