Reputation: 5449
Hi I need to apply a discount of 5.2% on a product.I have tryed doing something like this:
decimal BasePrice {get;set;}
decimal Discount = (BasePrice * 5.2) / 100;
But Visual Studio tells me that it :
can not apply operator '*' to operand of type decimal and double
If that is so how can I represent this discount?
Upvotes: 6
Views: 5340