round
- Details
- Last Updated on Tuesday, 15 January 2013 21:09
syntax
- round(a)
definition
round(a) results in a integer data item rounded off from data item a. Floating point data items result in a data items with an int32 value type, point data items result in data items with an ipoint value type.
applies to
Data items with value types:
- float32
- float64
- spoint
- dpoint
since version
5.45
example
attribute<int32> roundA (ADomain): expr = "round(A)";
| A | roundA | |
| 1.49 | 1 | |
| 1.5 | 2 | |
| -1.49 | -1 | |
| -1.5 | -1 | |
| -1.51 | -2 |