Round - ObjectVision/GeoDMS GitHub Wiki
Conversion functions round
round(a)
round(a) results in a integer data item rounded off from data item a. Float32/64 data items are rounded off to the int32 value type, f/dpoint data items to the ipoint value type.
- data item with float32, float64, fpoint or dpoint value type
5.45
attribute<int32> roundA (ADomain) := round(A);
| A | roundA |
|---|---|
| 1.49 | 1 |
| 1.5 | 2 |
| -1.49 | -1 |
| -1.5 | -1 |
| -1.51 | -2 |
ADomain, nr of rows = 5