[php-src] Issue #22410: Incorrect float behavior with large numbers
[email protected] (WanSpi) Tue, 23 Jun 2026 11:41:05 +0000
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <sO6y66oEYMAjAgx4Sa21VZ7voa4kKEWE9Mfbwp1O4eA@main.internal.php.net> |
Issue: https://github.com/php/php-src/issues/22410 Author: WanSpi ### Description Only in versions 8.4.x & 8.5.x, on 8.3.x everything works correctly. Bug appears only with large numbers. The following code: ```php <?php var_dump( round( (float) 9003241321073828 ) ); ``` Resulted in this output: ``` float(9003241321073829) ``` But I expected this output instead: ``` float(9003241321073828) ``` ### PHP Version ```plain 8.4.x & 8.5.x ``` ### Operating System -