dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

empty> <debug_zval_dump
[edit] Last updated: Fri, 28 Jun 2013

view this page in

doubleval

(PHP 4, PHP 5)

doublevalAlias of floatval()

Description

This function is an alias of: floatval().

Changelog

Version Description
4.2.0 doubleval() became an alias of floatval(). Before this time, only doubleval() existed.



add a note add a note User Contributed Notes doubleval - [1 notes]
up
-1
Anonymous
2 years ago
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);
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites