[php-src] Issue #14451: round 123456789012.1245 failed with precision 2

From: Date: Mon, 03 Jun 2024 09:00:58 +0000
Subject: [php-src] Issue #14451: round 123456789012.1245 failed with precision 2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247019@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/14451 Author: AnatoliyDanchuk ### Description The following code: ```php <?php echo round(123456789012.1245, 2); ``` Resulted in this output: ``` 123456789012.13 ``` But I expected this output instead: ``` 123456789012.12 ``` It reproduced on different OS, different php versions after 5.3.0 (included). Example in online sandbox: https://onlinephp.io?s=s7EvyCjg5eLlSk3OyFcoyi_NS9EwNDI2MTUzt7A0MDTSMzQyMdVRMNK0BgA%2C&v=8.3.7 ### PHP Version 8.3.7 ### Operating System _No response_

« previous php.bugs (#247019) next »