[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/math/functions/_pow.xml?=
From:       Christoph_Michael_Becker <cmb () php ! net>
Date:       2016-08-29 12:54:01
Message-ID: svn-cmb-1472475241-339951-518603687 () svn ! php ! net
[Download RAW message or body]

cmb                                      Mon, 29 Aug 2016 12:54:01 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=339951

Log:
Fix #72962: Missing example in pow() docs

While we're at it, we also update the following example.

Bug: https://bugs.php.net/72962 (Open) Missing example in pow() docs
      
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	2016-08-29 10:11:55 UTC (rev 339950)
+++ phpdoc/en/trunk/reference/math/functions/pow.xml	2016-08-29 12:54:01 UTC (rev 339951)
@@ -67,9 +67,10 @@
 var_dump(pow(2, 8)); // int(256)
 echo pow(-1, 20); // 1
 echo pow(0, 0); // 1
+echo pow(10, -1); // 0.1

-echo pow(-1, 5.5); // PHP >4.0.6  NAN
-echo pow(-1, 5.5); // PHP <=4.0.6 1.#IND
+echo pow(-1, 5.5); // PHP >=5.2.2: NAN
+echo pow(-1, 5.5); // PHP <5.2.2: -NAN
 ?>
 ]]>
     </programlisting>



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic