Parameters, Value
Absolute value function calculates the absolute value of numeric values.
Syntax:
- Format: abs(
<raw>
) - Parameters: see table below
- Value: ATTR (number >= 0)
Name | Category | Specification | Description |
---|---|---|---|
raw | ATTR(number) | / | nueric value to be calculated |
Common Usage
Example: return the absolute value of -45.2
return abs(-45.2)
Example: return the absolute value of 1, -2.5, and -3
uncollect [1, -2.5, -3] as a
return abs(a)