|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-04-21 08:17 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2021-04-21 08:17 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 07:00:01 2025 UTC |
Description: ------------ round() function fail if ini 'precision' value > 16 Test script: --------------- <?php // Default ini value ini_set('precision','14'); echo round(23.879999999999999, 2)."\n"; ini_set('precision','16'); echo round(23.879999999999999, 2)."\n"; ini_set('precision','17'); echo round(23.879999999999999, 2); Expected result: ---------------- 23.88 23.88 23.88 Actual result: -------------- 23.88 23.88 23.879999999999999