- #1

- 201

- 2

Does anyone know of any real life application of ceiling and floor functions?

You are using an out of date browser. It may not display this or other websites correctly.

You should upgrade or use an alternative browser.

You should upgrade or use an alternative browser.

- Thread starter matqkks
- Start date

- #1

- 201

- 2

Does anyone know of any real life application of ceiling and floor functions?

- #2

- 15,393

- 686

There are all kinds of uses for ceiling, floor, and related concepts such as rounding. One example: Fractional pennies don't exist, yet a number of calculations will yield fractional pennies. What to do with those things? If you're being fair you'll try to round so that sometimes the customer wins, sometimes the seller wins, but on average, it comes out even. If you're not being fair, there are lots of nefarious salami slicing schemes that let those fractional pennies pile up (in your account of course) and eventually yield lots of dollars.

Share: