note 49668 deleted from function.serialize by danbrown
| From: | danbrown@php.net | Date: | Mon, 20 Jun 2011 15:19:22 +0000 |
| Subject: | note 49668 deleted from function.serialize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180735@lists.php.net to get a copy of this message | ||
Note Submitter: s dot marechal at jejik dot com
----
In response to gafunchal NOSPAN at inf dot ufrgs dot br:
What you are seeing is not a bug in PHP's serialize() function, but a side-effect of the
floating point type. Floats are inherintly inaccurate and you are seeing it's inaccuracy.
More information about IEEE floats:
http://www.math.byu.edu/~schow/work/IEEEFloatingPoint.htm
http://www.codeguru.com/forum/printthread.php?t=323835