Let's say i have double with value: 36,25
I would like to round the double to a precision of 0,5 so after rounding my double it should become 32,5
So i would like to round Upwards. How can this be done?
Math.Round(double, 1, MidpointRounding.AwayFromZero)
Now this just rounds to 1 number after the , => so this lead to 36,3 but it should be 36,5
The double could also have a value with 3 decimal places, for example 36,125 which after rounding ...
Go to the complete details ...