|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-06-06 10:28 UTC] zh9025 at qq dot com
Description: ------------ --- From manual page: http://www.php.net/function.bcmul --- Test script: --------------- <?php // Test Url http://tb.besoft.top/bcmul.php 需要多次刷新 20%左右概率出现1 var_dump(bcmul(0.01, 100)); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Test script: --------------- <?php echo bcmul("0.01", 100); <?php echo bcmul(0.01, 100); Expected result: ---------------- 1 Actual result: -------------- 1.00 Test link: -------------- Refresh multiple times, and the result can also be 1The scale is not set, but there are two decimal places. Test script: --------------- <?php echo bcmul("0.01", 100); <?php echo bcmul(0.01, 100); Expected result: ---------------- 1 Actual result: -------------- 1.00 Test link: -------------- http://tb.besoft.top/bcmul.php Refresh multiple times, and the result can also be 1