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
litTotal.Text = "$"+ Convert.ToString(Math.Round(Convert.ToDecimal(total), 2));
Result will be:-
Total=$98.17