[php-langspec][Issue #242] - Misleading conversion float to int
| From: | noreply@php.net | Date: | Wed, 25 Sep 2019 13:52:47 +0000 |
| Subject: | [php-langspec][Issue #242] - Misleading conversion float to int | ||
| Groups: | php.standards | ||
| Request: | Send a blank email to standards-+get-1454@lists.php.net to get a copy of this message | ||
You can view the Issue on github:
https://github.com/php/php-langspec/issues/242
Opened By: Tomanhez
Issue Description:

If you have float var where decimal variable is 05, like this: 33.05 and multiply it by 100
You mistakenly get 3305 but if convert it on int you have 3304
Certainly occurs in php 7.1.25 - 7.4.0