note 69119 added to function.bcmul
| From: | jean-philippe at cybercat dot ca | Date: | Wed, 23 Aug 2006 20:08:03 +0000 |
| Subject: | note 69119 added to function.bcmul | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116237@lists.php.net to get a copy of this message | ||
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 <-------
Be aware ;-)
- JP
----
Server IP: 216.235.15.211
Probable Submitter: 70.81.125.39
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.bcmul.php
Edit -- https://master.php.net/note/edit/69119
Del: integrated -- https://master.php.net/note/delete/69119/integrated
Del: useless -- https://master.php.net/note/delete/69119/useless
Del: bad code -- https://master.php.net/note/delete/69119/bad+code
Del: spam -- https://master.php.net/note/delete/69119/spam
Del: non-english -- https://master.php.net/note/delete/69119/non-english
Del: in docs -- https://master.php.net/note/delete/69119/in+docs
Del: other reasons-- https://master.php.net/note/delete/69119
Reject -- https://master.php.net/note/reject/69119
Search -- https://master.php.net/manage/user-notes.php