RoundUp
Conversion functions roundUp
syntax
roundUp(a)
definition
roundUp(a) results in an integer data item rounded off upwards 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.
applies to
- Data item with float32, float64, fpoint or dpoint Value type
since version
5.45
example
attribute<int32> roundUpA (ADomain) := roundUp(A);
| A | roundUpA |
|---|---|
| 1.49 | 2 |
| 1.5 | 2 |
| -1.49 | -1 |
| -1.5 | -1 |
| -1.51 | -1 |
ADomain, nr of rows = 5