I get this message in my program but i don\'t know how to fix it i have search on the net but don\'t find any thing that can help me.
private double Price;
p
You can't multiply a decimal
by a double
. You can fix this by type casting, but you probably just want to stick with using decimal
for all prices and VAT rates throughout.
The type decimal was designed to be useful for financial calculations since it offers high precision at the cost of reduced range for the size of the type in bytes.