round

OpenTuring

roundreal-to-integer function

Syntax   round ( r : real ) : int

Description   The round function is used to convert a real number to an integer. The result is the nearest integer to r. In the case of a tie, the numerically larger value is returned. For example, round (3) is 3, round (2.85) is 3 and round (-8.43) is -8.

See also   the floor and ceil functions.