note 49668 added to function.serialize
| From: | s dot marechal at jejik dot com | Date: | Fri, 04 Feb 2005 12:42:41 +0000 |
| Subject: | note 49668 added to function.serialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84515@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.serialize.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49668
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49668&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49668&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49668&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49668&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49668&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49668&report=yes
Search -- http://master.php.net/manage/user-notes.php