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

From: Date: Thu, 04 Oct 2001 23:49:05 +0000
Subject: Bug #13551 Updated: BC functions apply decimal places argument also on arguments
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67301@lists.php.net to get a copy of this message
ID: 13551
Updated by: mfischer
Reported By: mlemos@acm.org
Old Status: Open
Status: Analyzed
Bug Type: BC math related
Operating System: Linux 2.2.18
PHP Version: 4.0.6
New Comment:

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

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

[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 (#67301) next »