折扣的公式是什么,
php中的是否有默认函数,
这是我的公式,chk是正确的方法,
$SELLING_PRICE = $ACTUAL_PRICE-$CHK_DISCOUNT_THERE;
$PRICE_AFTER_DISCOUNT = $ACTUAL_PRICE-$SELLING_PRICE;
答案 0 :(得分:18)
selling price = actual price - (actual price * (discount / 100))
例如,如果(实际价格)= 15美元,(折扣)= 5%
selling price = 15 - (15 * (5 / 100)) = $14.25
答案 1 :(得分:0)
与Literally一样,您可以复制粘贴此公式:
$total = $total - ($total * ($discount_amount/100));