note 36365 added to ref.math
| From: | chris at free-source dot com | Date: | Tue, 07 Oct 2003 13:37:15 +0000 |
| Subject: | note 36365 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57968@lists.php.net to get a copy of this message | ||
to "convert" scientific notation to a float simply cast it:
<?php
$val = '3.5e4';
$val = (float) $val;
echo $val;
?>
output:
35000
----
Manual Page -- http://www.php.net/manual/en/ref.math.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+36365
Delete -- http://master.php.net/manage/user-notes.php?action=delete+36365&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+36365&report=yes
Search -- http://master.php.net/manage/user-notes.php