本文介绍了如何计算税款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想计算产品成本为30的营业税并缴纳10.3%的税,实际金额是多少?
I want to calculate sales tax with product cost 30 and pay 10.3% tax what is the actual amount
推荐答案
float product = 30.0;
float tax= 10.3;
float actualcost = product - (product * tax / 100); //actualcost contains the actual amount
您可能需要将解决方案四舍五入到小数点后两位.
You might want to round the solution off to two decimal places.
这篇关于如何计算税款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!