|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13727 Call to undefined function: floatval()
Submitted: 2001-10-18 04:09 UTC Modified: 2001-10-18 06:01 UTC
From: aids at ukr dot net Assigned:
Status: Not a bug Package: *Math Functions
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: aids at ukr dot net
New email:
PHP Version: OS:


 [2001-10-18 04:09 UTC] aids at ukr dot net
source code:

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


return to browser:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-18 04:16 UTC]
As the docs at state right at the top.  This function is only in CVS.  Just use $fl = (float)$foo;
 [2001-10-18 06:01 UTC]
floatval is a new function available in current
CVS only, the old (and still available) name
is doubleval()

see the manual

or the function tables

for version and availability information
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 21 20:01:30 2024 UTC