-
Notifications
You must be signed in to change notification settings - Fork 1
Add
mtbeek32 edited this page Mar 7, 2024
·
34 revisions
Arithmetic functions addition (+)
- add(a, b, ...) or add_list(a, b, ...)
- a + b + ...
add(a, b, ...) or a + b + ... results in the element-by-element addition of corresponding values of the data items: a, b, ... ..
add_list is a synonym for add
If the result of the addition exceeds the MinValue or MaxValue of the value type, an error is generated. Use the add_or_null function if a null value is requested in these cases.
Data items with Numeric, Point, or String value type.
- Domain units of the arguments must match or be void, (literals or parameters can be added to data items of any domain).
- Arguments must have matching:
- value type
- metric
1. attribute<float32> addABC (ADomain) := add(A, B, C);
2. attribute<float32> addABC (ADomain) := A + B + C;
A | B | C | addABC |
---|---|---|---|
0 | 1 | 0 | 1 |
1 | -1 | 1 | 1 |
-2 | 2 | 4 | 4 |
3.6 | 1.44 | 7 | 12.04 |
999 | 111 | -5 | 1105 |
ADomain, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.