Doc #63197 [Opn->Csd]: floatval documentation should say what happens on failure
| From: | krakjoe@php.net | Date: | Thu, 15 Nov 2012 12:43:02 +0000 |
| Subject: | Doc #63197 [Opn->Csd]: floatval documentation should say what happens on failure | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9152@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63197&edit=1
ID: 63197
Updated by: krakjoe@php.net
Reported by: info06 at manuelbuser dot ch
Summary: floatval documentation should say what happens on
failure
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: Xubuntu Linux
PHP Version: 5.4.7
-Assigned To:
+Assigned To: krakjoe
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2012-10-02 09:09:42] info06 at manuelbuser dot ch
Description:
------------
---
From manual page: http://www.php.net/function.floatval#refsect1-
function.floatval-returnvalues
---
The description of the floatval return value is incomplete:
"The float value of the given variable. Empty arrays return 0, non-empty arrays
return 1."
It should say that floatval("string") returns 0 (the intval description does).
An even better wording has been proposed in bug #50311 (which was only partially
fixed)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63197&edit=1