|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-06 10:34 UTC] nlopess@php.net
[2011-06-03 13:47 UTC] robert at idacmedia dot com
[2011-06-03 17:29 UTC] jeanphilg at hotmail dot com
-Status: Closed
+Status: Assigned
[2011-06-03 17:29 UTC] jeanphilg at hotmail dot com
[2011-06-14 16:50 UTC] aharvey@php.net
-Status: Assigned
+Status: Closed
-Assigned To:
+Assigned To: nlopess
[2011-06-14 16:50 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 12:00:01 2025 UTC |
Description: ------------ This example is totally false : echo bcmul('1.34747474747', '35', 3); //47.162 If you use this line of code in your app, PHP will not round the last decimal. The value will be truncated at the third position and... here's the result : -------> 47.161 <------- Please at least change the doc. - JP Reproduce code: --------------- //Give 47.161, not 47.162 echo bcmul('1.34747474747', '35', 3); Expected result: ---------------- 47.162 Actual result: -------------- 47.161