Skip to main content

round

round (num)

The round function returns the integer value closest to num .

The rounding method is "away from zero".

The result for INF and NAN is undefined.

See Also

ceil, floor, trunc