[php-src] Issue #8028: Problem with casting into (int) or intval()
| From: | cmb69 | Date: | Thu, 03 Feb 2022 15:41:49 +0000 |
| Subject: | [php-src] Issue #8028: Problem with casting into (int) or intval() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-239448@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8028
Comment Author: cmb69
Floating point values have a limited precision. Hence a value might
not have the same string representation after any processing. That also
includes writing a floating point value in your script and directly
printing it without any mathematical operations.
If you would like to know more about "floats" and what IEEE
754 is, read this:
http://www.floating-point-gui.de/
Thank you for your interest in PHP.