[php-langspec][Issue #242] - Misleading conversion float to int
[email protected] Wed, 25 Sep 2019 13:57:36 +0000
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
You can view the Issue on github: https://github.com/php/php-langspec/issues/242 Comment by nikic: 32.05*100 is 3204.9999999999995 due to limited float precision, which is 3204 when rounding down, which is what (int) does (for positive numbers). Use `round()` is you want to round.