Silverlight - round doubles away from zero
- by Cornel
In Silverlight the Math.Round() method does not contain an overload with 'MidpointRounding' parameter. What is the best approach to round a double away from zero in Silverlight in this case?
Example:
Math.Round(1.4) = 1
Math.Round(1.5) = 2
Math.Round(1.6) = 2