Section 1
Floor and Ceiling Functions
Property
The floor and ceiling functions are used to convert decimal numbers to integers:
- The floor function gives the greatest integer less than or equal to (rounds down)
- The ceiling function gives the smallest integer greater than or equal to (rounds up)
Unlike traditional rounding, floor and ceiling functions always round in a specific direction regardless of the decimal part.