Bug #76418 [Com]: 高精度乘法运算一会有小数点 一会没有

From: Date: Wed, 06 Jun 2018 10:36:24 +0000
Subject: Bug #76418 [Com]: 高精度乘法运算一会有小数点 一会没有
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215512@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76418&edit=1 ID: 76418 Comment by: spam2 at rhsoft dot net Reported by: zh9025 at qq dot com Summary: 高精度乘法运算一会有小数点 一会没有 Status: Open Type: Bug Package: BC math related Operating System: CentOS Linux release 7.4.1708 (C PHP Version: 7.1.18 Block user comment: N Private report: N New Comment: please, this is an english bugtracker - i don't write german here too Previous Comments: ------------------------------------------------------------------------ [2018-06-06 10:34:13] zh9025 at qq dot com 1.正常情况下 应该是1,而不是1.00 2.刷新多次结果还可能变成1 ------------------------------------------------------------------------ [2018-06-06 10:28:27] 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)); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76418&edit=1

« previous php.bugs (#215512) next »