note 69119 deleted from function.bcmul by nlopess
| From: | nlopess@php.net | Date: | Thu, 31 Aug 2006 22:11:02 +0000 |
| Subject: | note 69119 deleted from function.bcmul by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116570@lists.php.net to get a copy of this message | ||
Note Submitter: jean-philippe at cybercat dot ca
----
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