Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In mathematics
and computer science, the floor and ceiling functions map a real number
to the largest previous or the smallest following integer, respectively.
More precisely, floor(x) = is the largest integer not greater than x and
ceiling(x) = is the smallest integer not less than x. Carl Friedrich
Gauss introduced the square bracket notation for the floor function in
his third proof of quadratic reciprocity. This remained the standard in
mathematics until Kenneth E. Iverson introduced the names "floor" and
"ceiling" and the corresponding notations x and x in his 1962 book A
Programming Language. Both notations are now used in mathematics; this
article follows Iverson.