In my application certain fields contain decimal numbers. And it is possible to enter only 2 decimal points. After doing some calculations, the result is displayed, and the answer should also contain 2 decimal points. For that I used the code below:-
obj.Revenue = 0.00m;
obj.Revenue = Math.Round(Convert.ToDecimal(obj.Revenue), 2);
[EDIT]
Inside view:-
@Html.TextBoxFor(model => model.Revenue, new { @id = "txtRevenue", @readonly = "readonly", @class = "decimalField" })
So that 300.00 should be displayed as answer. But I got 300. How can I solve this?