Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
30.632 つの小数との乗算に問題があり0.15ます。私の計算機によると、結果は になるはず4.60です。
30.63
0.15
4.60
$commission = bcmul(30.63, 0.15,2);
この結果は です4.59。
4.59
私が読んだことから、bcmulは10進数で動作することを意図していましたか?
どうもありがとう、