[php-src] Issue #22410: Incorrect float behavior with large numbers
| From: | WanSpi | Date: | Tue, 23 Jun 2026 11:41:05 +0000 |
| Subject: | [php-src] Issue #22410: Incorrect float behavior with large numbers | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-252244@lists.php.net to get a copy of this message | ||
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
-