Mul - ObjectVision/GeoDMS GitHub Wiki
Arithmetic functions multiplication ()*
- mul(a, b, ...)
- a * b * ...
mul(a,b, ...) or a * b * ... results in the element-by-element multiplication of corresponding values of the data items: a, b, ...
If the result of the multiplication exceeds the MinValue or MaxValue of the value type, an error is generated. Use the mul_or_null function if a null value is requested in these cases.
Data items with Numeric or Point Value Type
Units with Numeric 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:
1. attribute<float32> mulABC (ADomain) := mul(A, B, C)
2. attribute<float32> mulABC (ADomain) := A * B * C;
A | B | C | mulABC |
---|---|---|---|
0 | 1 | 0 | 0 |
1 | -1 | 1 | -1 |
-2 | 2 | 4 | -16 |
3.6 | 1.44 | 7 | 36.29 |
999 | 111 | -5 | 554,445 |
ADomain, nr of rows = 5