Primary
Floor Function ○◂|Definition|1st|20251119205401-00-⌔
Floor and ceiling functions - Wikipedia
Floor and ceiling functions
Floor function
Ceiling function
In mathematics, the floor function is the function that takes a real number x as input and returns the greatest integer less than or equal to x, written ⌊ x ⌋ or floor(x). Similarly, the ceiling function returns the least integer greater than or equal to x, written ⌈ x ⌉ or ceil(x).1
For example, for floor: ⌊2.4⌋ = 2, ⌊−2.4⌋ = −3, and for ceiling: ⌈2.4⌉ = 3, and ⌈−2.4⌉ = −2.
The floor of x is also called the integral part, integer part, greatest integer, or entier of x, and was historically denoted [x] (among other notations).2 However, the term “integer part” is ambiguous, as it can also mean truncation towards zero, which differs from the floor function for negative numbers.
For an integer n, ⌊ n ⌋ = ⌈ n ⌉ = n.
Although floor(x + 1) and ceil(x) are equal for non-integer values of x, and thus produce graphs that appear exactly alike, they differ when x is an integer. For example, when x = 2.0001, ⌊2.0001 + 1⌋ = ⌈2.0001⌉ = 3. However, if x = 2, then ⌊2 + 1⌋ = 3 but ⌈2⌉ = 2.
Printed 2026-06-28.
Link to original Footnotes
Graham, Knuth, & Patashnik, Ch. 3.1 ↩
↩
- Luke Heaton, A Brief History of Mathematical Thought, 2015, ISBN 1472117158 (n.p.)
2) Albert A. Blank et al., Calculus: Differential Calculus, 1968, p. 259
3) John W. Warris, Horst Stocker, Handbook of mathematics and computational science, 1998, ISBN 0387947469, p. 151
Secondary
• • •