- #1

- 201

- 2

## Main Question or Discussion Point

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

- Thread starter matqkks
- Start date

- #1

- 201

- 2

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

- #2

- 15,393

- 683

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.

- Last Post

- Replies
- 5

- Views
- 2K

- Replies
- 1

- Views
- 5K

- Replies
- 4

- Views
- 791

- Replies
- 4

- Views
- 528

- Last Post

- Replies
- 6

- Views
- 5K

- Last Post

- Replies
- 4

- Views
- 1K

- Last Post

- Replies
- 18

- Views
- 2K

- Replies
- 11

- Views
- 2K

- Last Post

- Replies
- 8

- Views
- 2K