我正在使用PHP gmp函数。
我想做以下数学陈述:
$profit_percent = 2405.665;
$bill_line['purchase_average_value'] = 36000000000;
$r = (1 + ($profit_percent / 100));
$r2 = $bill_line['purchase_average_value'];
$unit_price_with_profit = gmp_mul($r, $r2);
但是发生以下错误:
gmp_mul():无法将变量转换为GMP-类型错误