[php-src] Issue #13549: Special error with multiplication + type casting for (2.01 * 1000000)
| From: | Gayan-Thejawansha | Date: | Wed, 28 Feb 2024 08:41:22 +0000 |
| Subject: | [php-src] Issue #13549: Special error with multiplication + type casting for (2.01 * 1000000) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-246488@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/13549
Author: Gayan-Thejawansha
### Description
The following code:
```php
echo ((int)(2.01 * 1000000));
<?php
```
Resulted in this output:
```
2009999
```
But I expected this output instead:
```
2010000
```
### PHP Version
PHP version: 8.0.9
### Operating System
_No response_