note 22581 deleted from function.floor by danbrown
| From: | danbrown@php.net | Date: | Thu, 10 Mar 2011 15:24:02 +0000 |
| Subject: | note 22581 deleted from function.floor by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177770@lists.php.net to get a copy of this message | ||
Note Submitter: thouartjay at hotmail dot com
----
In response to netben's comment, another conversion for a string is:
$myStr = "29.01";
$myStr = (float) $myStr;
In all, any string (as used as in this example) will be treated as float, and no conversion
necessary.