logo-header

 
 

round

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
Table ADomain, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904



Recent Wiki Changes