commands → floor

floor(x)

The floor function returns the first integer smaller than the numeric value x.

Examples

floor(2.5);
	2.
floor(-2.5);
	-3.
floor(5/2);
	2
floor(-5.2);
	-3

References

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