$oneGPrice = 41.09;
$oneGPrice = $oneGPrice + ($oneGPrice * 0.28);
$oneGPrice = $oneGPrice + ($oneGPrice * 0.025); // Answer should be 53.9
答案是完美的,但我想像这样在一行中进行计算,但是当我尝试在一行中进行计算时得到了错误的答案。
$oneGPrice = (($oneGPrice + ($oneGPrice * 0.28)) * 0.025) + oneGPrice;
精慕HU
犯罪嫌疑人X
拉莫斯之舞