Dear Stackoverflowers,
I would like to know what sollutions you can come up with for the following problem:
This is what I have:
13.90
5.03
7.06
2.51
This is what I want:
13.90
5.05
7.05
2.50
Basically: I want to round currency on a commercial base. There last decimal may only be rounded up to 5 or 10 (adding one to the first digit) or rounded down to 5 or 0.
A general formula for rounding to the nearest
x:And an example for your use case: