Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#round

##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.html and ceil.html functions.

Clone this wiki locally