Operator '*' cannot be applied to operands of type 'double' and 'decimal'

前端 未结 4 2023
北荒
北荒 2020-12-07 00:39

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         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-07 00:44

    Change foodVATRate to decimal, too. There doesn't seem to be any reason for it to be double.

提交回复
热议问题