The Art of Interface
+49 89 8999640

Article 11 — Appendix A.39

floor — floor function

Category. Mathematics.

Abstract. Floor: definition, graph and properties.

References. This article is a part of scientific calculator Li-Lc and scientific calculator Li-Xc products.

See also. ceil — ceiling function.

1. Definition

Floor is the nearest integer to the left — the larget integer less than or equal to the argument.

2. Plot

Floor function defined everywhere on real axis — so, its domain is (−∞, +∞). Its stair-like plot is depicted below — fig. 1.

y = floor x Fig. 1. Plot of the floor function y = floorx.

Function codomain is the set of integer numbers.

3. Properties

When using the function be aware, that in general case:

floor(x) + floor(y) ≠ floor(x + y)
floor(x) − floor(y) ≠ floor(xy)
floor(x) floor(y) ≠ floor(x y)
floor(x) /floor(y) ≠ floor(x /y)

4. Support

Floor function of the complex argument floor is supported in:

5. How to use

To get floor of the number:


To get floor of the current result:


To get floor of the number x in memory: