The CEILING
function rounds a number up, away from zero, to the nearest multiple of significance. The FLOOR
function does the same by rounds the number down towards zero.
An example of when CEILING
could be be used is if you want to avoid using pennies in your prices and your product is priced at $4.42, use the formula =CEILING(4.42,0.05)
to round prices up to the nearest nickel.
For example:
=CEILING(2.2, 1)
=FLOOR(2.2, 1)
=CEILING(-4.8, 2)
=FLOOR(-4.8, 2)
=CEILING(0.456, 0.01)
=FLOOR(0.456, 0.01)
Would return:
3
2
-4
-6
0.46
0.45