Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Floor function
In mathematics and computer science, the floor function is the function that takes as input a real number
Similarly, the ceiling function maps
Examples
x | Floor |
Ceiling |
---|---|---|
2 | 2 | 2 |
2.4 | 2 | 3 |
2.9 | 2 | 3 |
−2.7 | −3 | −2 |
−2 | −2 | −2 |