Bug #79443 [NEW]: round with precision is not rounding

From: Date: Wed, 01 Apr 2020 15:41:50 +0000
Subject: Bug #79443 [NEW]: round with precision is not rounding
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226391@lists.php.net to get a copy of this message
From: info at globules dot io Operating system: Windows 10 x64 PHP version: 7.4.4 Package: *General Issues Bug Type: Bug Bug description:round with precision is not rounding Description: ------------ round with precision is not rounding Test script: --------------- echo round(-80.0035326999999938, 6); Expected result: ---------------- -80.003533 Actual result: -------------- -80.0035330000000044 -- Edit bug report at https://bugs.php.net/bug.php?id=79443&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79443&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79443&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79443&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79443&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79443&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79443&r=support Expected behavior: https://bugs.php.net/fix.php?id=79443&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79443&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79443&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79443&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79443&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79443&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79443&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79443&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79443&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79443&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79443&r=mysqlcfg

« previous php.bugs (#226391) next »