Friday, May 10, 2013

Convert to two decimal places for decimal/money value ASP.Net C#

The easiest way to show the  decimal type valueup to 2 places

 litTotal.Text = "$"+ Convert.ToString(Math.Round(Convert.ToDecimal(total), 2));

Result will be:-
Total=$98.17