ID: 13727
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: *Math Functions
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:

floatval is a new function available in current
CVS only, the old (and still available) name
is doubleval()

see the manual

http://php.net/floatval

or the function tables

http://zugeschaut-und-mitgebaut.de/php/function.floatval.html

for version and availability information

Previous Comments:
------------------------------------------------------------------------

[2001-10-18 04:16:11] [EMAIL PROTECTED]

As the docs at php.net/floatval state right at the top.  This function is only in CVS. 
 Just use $fl = (float)$foo;

------------------------------------------------------------------------

[2001-10-18 04:09:59] [EMAIL PROTECTED]

source code:
<?php

$fl = pi();
echo $fl, '<br>';
$fl = floatval($fl);
echo $fl, '<br>';

?>

return to browser:
3.1415926535898

Fatal error: Call to undefined function: floatval() in c:\temp\pit4.phtml on line 5

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=13727&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to