Version

MidpointRoundingAwayFromZero(Single) Method

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

Parameters

value
The value.

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