round


Purpose
Round a number to the nearest integer.
Synopsis
function round(r:real):integer
Argument
Real number to be rounded
Return value
Rounded value.
Example
In the following, i takes the value 6, j the value -7, and k the value 13:
i := ceil(5.6)
j := round(-6.7)
k := round(12.3)
Related topics
ceil, floor.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.