From e8558faecb38ec88ef62084d468e3ac36e355b4a Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Sat, 4 Aug 2001 13:08:04 +0000 Subject: [PATCH] New pow() documentation to reflect 407-changes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@53263 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/math.xml | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/functions/math.xml b/functions/math.xml index c7d4200aa3..a54a30c6f4 100644 --- a/functions/math.xml +++ b/functions/math.xml @@ -1,4 +1,4 @@ - + Mathematical Functions Math @@ -974,16 +974,42 @@ echo pi(); Description - float pow - float base - float exp + number pow + number base + number exp Returns base raised to the power of - exp. If this can't be computed, - exp will return NAN. + exp. If possible, this function will + return an integer. + + If the power cannot be computed, a warning will be issued, + and pow will return &false;. + + + Some examples of <function>pow</function> + + +]]> + + + + + In PHP 4.0.6 and earlier pow always returned + a float, and did not issue warnings. + + See also exp. @@ -1219,4 +1245,5 @@ sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vim: ts=4 sw=4 et syntax=sgml -->