previous up next
Go backward to Example
Go up to Top
Go forward to Illustration
RISC-Linz logo

Floor and Ceiling

Definition: The floor of a real number x is the largest integer less than or equal x.

floor(x) := max {y in Z: y <= x}.

Analogously, the ceiling of x is the smallest integer greater than or equal x:

ceiling(x) := min {y in Z: y >= x}.

Functions mapping real numbers to integers.


Author: Wolfgang Schreiner
Last Modification: December 14, 1999

previous up next