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. That is, 3.789 becomes 4.0; 987.123 becomes 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


Examples

   roundedval = round(arbitrary_val)

See Also

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