Purpose
Round
a number to the nearest integer.
Synopsis
function round(r:real):integer
Argument
|
r
|
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 12:
i := round(5,5)
j := round(-6,7)
k := round(12,3)
Related topics