decimal Debitvalue = 1156.547m;
decimal DEBITAMT = Convert.ToDecimal(string.Format("{0:0.00}", Debitvalue));
I have to get only two decimal places but by using this code I am getting 1156.547.
Which format do I have to use to display two decimal places?
If you want to round the decimal, look at
Math.Round()