commands → ceil

ceil(x)

The ceil function returns the first integer larger than a numeric value x.

Examples

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

References

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