Bug #78238 [Opn]: BCMath returns "-0"

From: Date: Tue, 02 Jul 2019 06:42:27 +0000
Subject: Bug #78238 [Opn]: BCMath returns "-0"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221574@lists.php.net to get a copy of this message
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)

« previous php.bugs (#221574) next »