Bug #13727 Updated: Call to undefined function: floatval()

From: Date: Thu, 18 Oct 2001 10:01:07 +0000
Subject: Bug #13727 Updated: Call to undefined function: floatval()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68209@lists.php.net to get a copy of this message
ID: 13727 Updated by: hholzgra Reported By: aids@ukr.net 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] rasmus@php.net 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] aids@ukr.net 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

« previous php.dev (#68209) next »