|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-12-06 13:14 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ -0.1 * 0; // returns -0 I believe it should return 0 without the minus sign. -- I will also submit another bug for the "BC math related" type. echo bcadd("-0.0", "-0.0", 1); // returns -0.0 echo bccomp("-0.0", "0", 1); // returns -1 -- Reproduce code: --------------- <?php echo -0.1 * 0; // returns -0 ?> Expected result: ---------------- 0 Actual result: -------------- -0