note 86874 rejected from function.floatval by danbrown
| From: | danbrown@php.net | Date: | Fri, 07 Nov 2008 14:01:39 +0000 |
| Subject: | note 86874 rejected from function.floatval by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146282@lists.php.net to get a copy of this message | ||
Note Submitter: fabouney at gmail dot com
----
I answer to the previous post :
No.
$floatn = '29,5';
echo (float)$floatn; //return 29 as float number
and this :
$floatn = '29.5';
echo (float)$floatn; //return 29.5 as float number