c# double round 2 decimals code example
Example 1: c# round to 2 decimal places
decimal b = 1.995555M;
Math.Round(b, 2); //returns 2.00
Example 2: c# round double
Math.Round(1.23)
decimal b = 1.995555M;
Math.Round(b, 2); //returns 2.00
Math.Round(1.23)