[php-src] Issue #11070: PHP8 gives me seriously wrong calculation results
| From: | shinsenter | Date: | Fri, 14 Apr 2023 03:36:12 +0000 |
| Subject: | [php-src] Issue #11070: PHP8 gives me seriously wrong calculation results | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-244193@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/11070
Author: shinsenter
### Description
The following code:
```php
<?php
var_dump(97.2 - 90.0);
```
Resulted in this output:
```
float(7.200000000000003)
```
But I expected this output instead:
```
float(7.2)
```
### PHP Version
^8.0
### Operating System
Ubuntu 20.04