Bug #78238 [Opn]: BCMath returns "-0"
Edit report at https://bugs.php.net/bug.php?id=78238&edit=1
ID: 78238
Updated by: cmb@php.net
Reported by: Wes dot nospam at example dot org
Summary: BCMath returns "-0"
Status: Open
Type: Bug
Package: BC math related
PHP Version: 7.4.0alpha2
Block user comment: N
Private report: N
New Comment:
Closely relared to bug #78071.
Previous Comments:
------------------------------------------------------------------------
[2019-07-01 23:27:09] Wes dot nospam at example dot org
Description:
------------
Not sure if we care about not returning "-0".
If we do, the reproduce code is:
echo bcadd("0", "-0.1"); // returns "-0"
Used to work back in PHP 4 (!!!) never worked in 5 and 7 https://3v4l.org/hammP
Thanks
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78238&edit=1
Thread (6 messages)