dotnet / dotnet/dotnet-api-docs
AwayFromZero
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
var testRound = Math.Round(0.145, 2, MidpointRounding.AwayFromZero);var testRound = Math.Round(0.145, 2, MidpointRounding.AwayFromZero); Its converting to 0.14 but not to 0.15.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 368739c8-b715-6b7e-915f-b6940ec911da
* Version Independent ID: a3728216-0728-49fa-a7d1-53decc933c30
* Content: [Math.Round Method (System)](https://docs.microsoft.com/en-us/dotnet/api/system.math.round?view=netframework-4.7.2#System_Math_Round_System_Double_System_MidpointRounding_)
* Content Source: [xml/System/Math.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/Math.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.