note 99902 deleted from function.doubleval by cmb
| From: | cmb@php.net | Date: | Sat, 25 Jun 2016 14:59:40 +0000 |
| Subject: | note 99902 deleted from function.doubleval by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205809@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
We can convert the value to normal decimal value...
<?php
$mynumstr = "100,000,000.75";
$mynum = doubleval(str_replace(",","",$mynumstr));
echo "Normal Value:".number_format($mynumstr);
?>