ID: 33549
Updated by: [EMAIL PROTECTED]
Reported By: a dot schilder at gmx dot de
-Status: Open
+Status: Verified
-Bug Type: BC math related
+Bug Type: Documentation problem
Operating System: Win XP SP2
PHP Version: 5.0.4
New Comment:
If you pass the numbers as strings (as expected, although the manual
has it wrong in the example), this works fine:
bcmul("1", "0.00001", 5);
Reclassified as documentation issue. (the bad examples in bcmath
section)
Previous Comments:
------------------------------------------------------------------------
[2005-07-02 18:03:12] a dot schilder at gmx dot de
Description:
------------
The result returned by bcmul() with the factor X (greater than 0) and
0.00001 is 0 - it's not the expected result.
Reproduce code:
---------------
// Does not work - result is 0:
bcmul(1, 0.00001, 5);
// This workaround does it - result 0.00001:
bcdiv(bcmul(1, 0.00010, 5), 10, 5);
Expected result:
----------------
The correct result 0.00001
Actual result:
--------------
0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33549&edit=1