absDiff
Returns the absolute difference between two numbers.
For the real difference — i.e. the value with its sign — use diff instead.
Parameters
X (number)
The number to subtract from.
Y (number)
The number to subtract.
Examples
ATL in Script | Result |
---|---|
| 2 |
| 2 |
| 16 |
| 16 |
| 2 |
Note
This is a convenience function with the same effect as [[abs(diff(value1, value2))]]
.