Comparing CEILING and FLOOR

Accessing and Changing Relational Data

Accessing and Changing Relational Data

Comparing CEILING and FLOOR

The CEILING function returns the smallest integer greater than or equal to the given numeric expression. The FLOOR function returns the largest integer less than or equal to the given numeric expression. For example, given a numeric expression of 12.9273, CEILING returns 13, and FLOOR returns 12. The return value of both FLOOR and CEILING has the same data type as the input numeric expression.

See Also

Mathematical Functions