note 110767 added to function.intval
| From: | ittasks at gmail dot com | Date: | Wed, 05 Dec 2012 21:43:25 +0000 |
| Subject: | note 110767 added to function.intval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192277@lists.php.net to get a copy of this message | ||
be carefull with intval
for example
echo intval(9.03/0.01) ;
output 902 instead of 903 for no obvious reasons
while
echo intval(9.04/0.01) ;
will be 904 as expected.
----
Server IP: 69.147.83.199
Probable Submitter: 72.52.91.2 (proxied: 75.119.240.235)
----
Manual Page -- http://php.net/manual/en/function.intval.php
Edit -- https://master.php.net/note/edit/110767
Del: integrated -- https://master.php.net/note/delete/110767/integrated
Del: useless -- https://master.php.net/note/delete/110767/useless
Del: bad code -- https://master.php.net/note/delete/110767/bad+code
Del: spam -- https://master.php.net/note/delete/110767/spam
Del: non-english -- https://master.php.net/note/delete/110767/non-english
Del: in docs -- https://master.php.net/note/delete/110767/in+docs
Del: other reasons-- https://master.php.net/note/delete/110767
Reject -- https://master.php.net/note/reject/110767
Search -- https://master.php.net/manage/user-notes.php