Bug #80170 [NEW]: incorrect floating
From: wapinet at mail dot ru
Operating system:
PHP version: 8.0.0beta4
Package: Math related
Bug Type: Bug
Bug description:incorrect floating
Description:
------------
https://3v4l.org/X4I7W
Test script:
---------------
<?php
var_dump(34.99 - 10);
// Output for 8.0.0alpha1 - beta4
// float(24.990000000000002)
// Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.23, 7.4.0 - 7.4.11
// float(24.99)
Expected result:
----------------
24.99
Actual result:
--------------
24.990000000000002
--
Edit bug report at https://bugs.php.net/bug.php?id=80170&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80170&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80170&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80170&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80170&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80170&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80170&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80170&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80170&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80170&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80170&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80170&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80170&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80170&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80170&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80170&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80170&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80170&r=mysqlcfg
Thread (4 messages)
- wapinet at mail dot ru