I have following C# code:
Code Csharp:Total = SubTotal - (SubTotal*ColumnPercent/100);
All the value are initially declared as "Decimal". I want the Total to store values with two decimal places.
For example, if the calculated value comes out to be: 2155.33333, Total must store: 2155.33



Reply With Quote


Bookmarks