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

From Prime-Wiki
Revision as of 16:56, 29 August 2022 by Happy5214 (talk | contribs) (Moving to new subcategory)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In mathematics and computer science, the floor function is the function that takes as input a real number x and gives as output the greatest integer less than or equal to x, denoted floor(x)=x.

Similarly, the ceiling function maps x to the least integer greater than or equal to x, denoted ceil(x)=x.

Examples

x Floor x Ceiling x
2 2 2
2.4 2 3
2.9 2 3
−2.7 −3 −2
−2 −2 −2

External links