-
Notifications
You must be signed in to change notification settings - Fork 1
Abs
mtbeek32 edited this page Jan 25, 2024
·
9 revisions
Arithmetic functions absolute (||)
- abs(a)
abs(a) results in the absolute values (|a|) of data item a, meaning a if a >= 0 and -a if a < 0.
Data item with int8, int16, int32, float32 or float64 value type
1. attribute<float32> absA (ADomain) := abs(A);
A | absA |
---|---|
0 | 0 |
1 | 1 |
-2 | 2 |
3.6 | 3.6 |
999 | 999 |
ADomain, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.