svn: /phpdoc/en/trunk/reference/math/functions/ pow.xml
| From: | Gustavo André dos Santos Lopes | Date: | Sun, 04 Mar 2012 19:08:18 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/math/functions/ pow.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9831@lists.php.net to get a copy of this message | ||
cataphract Sun, 04 Mar 2012 19:08:18 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323895
Log:
- Fixed doc bug #60789: pow() uses floats if one argument is a float.
Bug: https://bugs.php.net/60789 (Open) pow() uses floats if
one argument is a float
Changed paths:
U phpdoc/en/trunk/reference/math/functions/pow.xml
Modified: phpdoc/en/trunk/reference/math/functions/pow.xml
===================================================================
--- phpdoc/en/trunk/reference/math/functions/pow.xml 2012-03-04 18:57:43 UTC (rev 323894)
+++ phpdoc/en/trunk/reference/math/functions/pow.xml 2012-03-04 19:08:18 UTC (rev 323895)
@@ -44,8 +44,9 @@
&reftitle.returnvalues;
<para>
<parameter>base</parameter> raised to the power of
<parameter>exp</parameter>.
- If the result can be represented as integer it will be returned as type
- <type>integer</type>, else it will be returned as type
<type>float</type>.
+ If both arguments are non-negative integers and the result can be represented
+ as an integer, the result will be returned with <type>integer</type> type,
+ otherwise it will be returned as a <type>float</type>.
</para>
</refsect1>
<refsect1 role="changelog">