DecimalAdd

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		decimal b = Math.Round(20.001M * 100M) / 100M; 
		b = b + .00M; 
		Console.WriteLine(b);
		
		b = Math.Round(20.001M * 100M) / 100M; 
		b = Decimal.Add(b, .00M);
		Console.WriteLine(b);
	}
}
;