I want to do this using the Math.Round
function
C# – How to round a number to two decimal places in C#
bankers-roundingcdecimalrounding
Related Topic
- Java – How to round a number to n decimal places in Java
- C# – How to display a decimal value to 2 decimal places
- Python – Limiting floats to two decimal points
- Python – How to round UP a number
- C# – How to generate a random int number
- Php – Show a number to two decimal places
- Javascript – How to round to at most 2 decimal places, if necessary
Best Answer
Here's some examples:
You might also want to look at bankers rounding / round-to-even with the following overload:
There's more information on it here.