Doc #54483 [Opn->Bgs]: Bad returning value explained
| From: | aharvey@php.net | Date: | Fri, 08 Apr 2011 07:49:17 +0000 |
| Subject: | Doc #54483 [Opn->Bgs]: Bad returning value explained | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6210@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54483&edit=1
ID: 54483
Updated by: aharvey@php.net
Reported by: franverona at gmail dot com
Summary: Bad returning value explained
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
ceil() really does return a float. The Return Values section of the
manual page explains why:
"The return value of ceil() is still of type float as the value range of
float is usually bigger than that of integer."
Closing.
Previous Comments:
------------------------------------------------------------------------
[2011-04-07 12:59:29] franverona at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.ceil#Description
---
Hello PHP community,
Reading this exactly doc I think that it have an issue relative to
description.
It
says that 'ceil' function "Returns the next highest integer value by
rounding up
value if necessary", but the definition says that its returns a float
number.
"float" ceil ( float $value )
Returns the next highest "integer" value by rounding up value if
necessary.
I notice this right now and I want to help you. I hope it helps. Good
job :)
Test script:
---------------
It just a text bug; test code is not relevant.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54483&edit=1