How can I get??
If my answer is 1.1
then output should be 1.1 (Actual)
My code :-
decimal totalUnusedAmount = 0;
decimal.TryParse(txtTotalUnusedAmount.Text, out totalUnusedAmount);
lblAmountDue.Text = ((totalUnusedAmount * Convert.ToDecimal(ViewState["FundedAmount"])) / 100).ToString();
but from the above code, getting answer 1.10. When I debug the code, at the time of debugging it gives 1.1.
I tried this….its working
http://www.csharp-examples.net/string-format-double/