Version

MidpointRoundingAwayFromZero(Double,Int32) Method

Replace Math.Round( x, d, MidpointRounding.AwayFromZero )
Syntax
public static double MidpointRoundingAwayFromZero( 
   double value,
   int digits
)

Parameters

value
The value.
digits
The number of fractional digits to round to.

Return Value

rounded away zero value
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also