Bug #80274 [NEW]: Simple addition and subtraction, but the result is messy.
| From: | 2007 dot liufeng dot love at gmail dot com | Date: | Fri, 23 Oct 2020 06:34:59 +0000 |
| Subject: | Bug #80274 [NEW]: Simple addition and subtraction, but the result is messy. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-229861@lists.php.net to get a copy of this message | ||
From: 2007 dot liufeng dot love at gmail dot com
Operating system: CentOS Linux release 7.8.2003 (C
PHP version: 7.3.23
Package: Math related
Bug Type: Bug
Bug description:Simple addition and subtraction, but the result is messy.
Description:
------------
Simple addition and subtraction, but the result is messy.
Test script:
---------------
var_dump(1011.55 + 228.83 - 1240.38);
Expected result:
----------------
0
Actual result:
--------------
float(-2.2737367544323E-13)
--
Edit bug report at https://bugs.php.net/bug.php?id=80274&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80274&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80274&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80274&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80274&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80274&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80274&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80274&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80274&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80274&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80274&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80274&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80274&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80274&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80274&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80274&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80274&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80274&r=mysqlcfg