[PHP-DOC] Bug #13551 Updated: BC functions apply decimal places argument also on arguments From: derick <email protected>
Date: 10/05/01

ID: 13551
Updated by: derick
Reported By: mlemos <email protected>
Status: Analyzed
Old Bug Type: BC math related
Bug Type: Documentation problem
Operating System: Linux 2.2.18
PHP Version: 4.0.6
New Comment:

It's not a bug, but a feature (tm). BC only works with integer values, and all arguments must be integer values.
However, the documentation is not quite clear here.

Derick

Previous Comments:
------------------------------------------------------------------------

[2001-10-04 19:49:04] mfischer <email protected>

Confirmed with latest CVS. Either the documentation is wrong or the implementation. Both won't need rocket sience to fix ...

Btw, this seems to be true for all bc*() functions.

Probably the documentation isn't clear enough about the current behaviour. Andi?

- Markus

------------------------------------------------------------------------

[2001-10-04 19:18:17] mlemos <email protected>

BC functions apply decimal places also on arguments but it should only apply them on the result.

For example bcmul('8.78','100',0) should return 878 and not 800 as it does now.

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=13551&edit=1