|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-27 05:13 UTC] pollita@php.net
[2017-09-06 16:14 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2017-09-06 16:14 UTC] cmb@php.net
[2017-09-07 08:43 UTC] PhoneixSegovia at gmail dot com
-Status: Feedback
+Status: Closed
[2017-09-07 08:43 UTC] PhoneixSegovia at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 05:00:01 2025 UTC |
Description: ------------ When you do simple integer division with bcdiv some times the result have trailing 0 and other times is a simply integer (without .000000). For example with bcdiv('4163592965659328', 32) some times return "130112280176854" but other times return "130112280176854.0000000000". It appeared to be totally random as you refresh the page. I have version 5.5.9. I have searched in the bugs but I didn't found any similar bug. Also I know I must use the last version of php to report a bug but I can't do it (company limitation). Note to use the hard refresh in the test script so the page isn't cached. Test script: --------------- <!DOCTYPE HTML> <html> <body> <?php echo bcdiv('4163592965659328', 32); ?> </body> </html> Expected result: ---------------- 130112280176854 Actual result: -------------- 130112280176854.0000000000