[php-src] Issue #12577: intval bug - when multiplying 128.98..162.98 by 100 in intva
| From: | MichelePalmieri | Date: | Tue, 31 Oct 2023 10:11:45 +0000 |
| Subject: | [php-src] Issue #12577: intval bug - when multiplying 128.98..162.98 by 100 in intva | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245697@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12577
Author: MichelePalmieri
### Description
The following code:
```php
<?php
echo intval(128.98*100)."\n";
echo intval(135.98*100)."\n";
echo intval(143.98*100)."\n";
echo intval(162.98*100)."\n";```
Resulted in this output:
```
12897
13597
14397
19697
```
But I expected this output instead:
```
12898
13598
14398
19698
```
### PHP Version
All
### Operating System
All