commands → round

round(x)

The round function rounds a numeric value x to the nearest integer.

Examples

round(2.5);
	3.
round(-2.5);
	-3.
round(5/2);
	3
round(-5/2);
	-3

References

Gullberg, Jan. Mathematics: From the Birth of Numbers. Norton, 1996.