How can I round a double to the next .95?
Here's what I want to achieve:
4.15 should become 4.95
5.95 should become 5.95
6.96 should become 7.95
How can I achieve this?
I tried using Math.Round(), but it seems like it only supports rounding to a specific amount of decimal points. Not a specific value. I also tried this solution, but it seems like this only works for whole numbers.