svn: /phpdoc/en/trunk/reference/math/functions/ floor.xml
| From: | Christoph Michael Becker | Date: | Wed, 02 Sep 2015 21:56:38 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/math/functions/ floor.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13689@lists.php.net to get a copy of this message | ||
cmb Wed, 02 Sep 2015 21:56:38 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337718
Log:
The return type of floor is not only float but can also be false
--
Provided by anonymous 55596 (rstoll@tutteli.ch)
Changed paths:
U phpdoc/en/trunk/reference/math/functions/floor.xml
Modified: phpdoc/en/trunk/reference/math/functions/floor.xml
===================================================================
--- phpdoc/en/trunk/reference/math/functions/floor.xml 2015-09-02 21:50:07 UTC (rev 337717)
+++ phpdoc/en/trunk/reference/math/functions/floor.xml 2015-09-02 21:56:38 UTC (rev 337718)
@@ -8,11 +8,11 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>float</type><methodname>floor</methodname>
+ <type>mixed</type><methodname>floor</methodname>
<methodparam><type>float</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<simpara>
- Returns the next lowest integer value by rounding down
+ Returns the next lowest integer value (as float) by rounding down
<parameter>value</parameter> if necessary.
</simpara>
</refsect1>
@@ -37,7 +37,7 @@
<parameter>value</parameter> rounded to the next lowest integer.
The return value of <function>floor</function> is still of type
<type>float</type> because the value range of <type>float</type> is
- usually bigger than that of <type>integer</type>.
+ usually bigger than that of <type>integer</type>. This function returns FALSE in
case of an error (e.g. passing an array).
</para>
</refsect1>
<refsect1 role="examples">