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

From: Date: Thu, 18 Oct 2001 08:16:11 +0000
Subject: Bug #13727 Updated: Call to undefined function: floatval()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68193@lists.php.net to get a copy of this message
ID: 13727 Updated by: rasmus Reported By: aids@ukr.net Old Status: Open Status: Bogus Bug Type: *Math Functions Operating System: Windows 2000 PHP Version: 4.0.6 New Comment: As the docs at php.net/floatval state right at the top. This function is only in CVS. Just use $fl = (float)$foo; Previous Comments: ------------------------------------------------------------------------ [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 (#68193) next »