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 12:
i := round(5.5)
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 support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.