bug on bc math?

From: Date: Mon, 30 Jul 2012 12:47:30 +0000
Subject: bug on bc math?
Groups: php.internals 
Request: Send a blank email to internals+get-61873@lists.php.net to get a copy of this message
Hi, before raising a bug I was wondering if anyone noticed this odd behavior in BC math functions ? Actual php -r "echo bcmul('1.1', '9.0', 5);" ==> 9.90 php -r "bcscale(5); echo bcmul('1.1', '9.0');" ==> 9.90 php -r "bcscale(5); echo bcadd('8.9', '1.0');" ==> 9.90000 Expected php -r "echo bcmul('1.1', '9.0', 5);" ==> 9.90000 php -r "bcscale(5); echo bcmul('1.1', '9.0');" ==> 9.90000 php -r "bcscale(5); echo bcadd('8.9', '1.0');" ==> 9.90000 Seen on 5.3 and 5.4. Looking at http://git.php.net/?p=php-src.git;a=history;f=ext/bcmath/bcmath.c;h=5dfafa8bd8dbc1703af2ea4452ac2b05b765a619;hb=HEADI couldn't see any recent change related to this bug. Thank you

« previous php.internals (#61873) next »