ROUND_INT
returns the rounded integer part of x. The values are rounded half up.
Syntax
ROUND_INT (x)
Parameters
x (decimal): any number. The return value is an integer.
The 'i = ROUND_INT (x)'
expression is equivalent with the following script:IF x > 0.0 THEN i = INT (x - 0.5) ELSE i = INT (x + 0.5)
Remarks
Usable since script version 1.1 (Allplan 2012-1).
(C) ALLPLAN GmbH |
Privacy policy |