NAME

round - round the argument to the nearest integer


SYNOPSIS

val = round(someval)


DESCRIPTION

round returns (as a double) the nearest integer ("rounded off") value of the argument someval. I.e. 3.789 becomes 4.0; 987.123 become 987.0. This differs from the trunc scorefile command in that it will return the closest int, where trunc simply ignores the values after the decimal point.


ARGUMENTS
someval
Any number, floating point or integer (although an int would be silly...)


EXAMPLES
   roundedval = round(arbitrary_val)

SEE ALSO

abs, log, pow, max, min, mod, trunc, wrap