Bug #13551 Updated: BC functions apply decimal places argument also on arguments

From: Date: Fri, 05 Oct 2001 06:21:11 +0000
Subject: Bug #13551 Updated: BC functions apply decimal places argument also on arguments
References: 1  Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-67313@lists.php.net to get a copy of this message
ID: 13551
Updated by: derick
Reported By: mlemos@acm.org
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@php.net

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@acm.org

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



Thread (4 messages)

« previous php.dev (#67313) next »