After following the below mentioned links:
Link1 Link2 Link3 And the list goes on. I don't think I fully grasp the idea of Math.Round.
Lets say I have the following values [73.59, 46.28] now I want to road both up to the next 5.
After using Math.Round(Value / 5) * 5
the end results are as follow is:
73.59 => 70
46.28 => 45
This is working for how the Math.Round was intended to be used. However, I am working with currency and would like it to be the next 5 up. So the desired result would want to be the following:
73.59 => 75
46.28 => 50
I also tried playing around with MidpointRounding.AwayFromZero
but I still do not get the desired result. Can somebody please explain or provide guidance to how I could accomplish this task?
Thank you in advance.