note 20054 added to function.pow

From: Date: Wed, 20 Mar 2002 20:58:40 +0000
Subject: note 20054 added to function.pow
Groups: php.notes 
Request: Send a blank email to php-notes+get-28001@lists.php.net to get a copy of this message
When using powers, make sure you use the correct precedence. To make sure that the value returned is negative use the function like so: $val=-pow(10,5); But if you want to do (-10) raised to the 5th use the function like this: $val=(pow((-10),5); -- http://www.php.net/manual/en/function.pow.php http://master.php.net/manage/user-notes.php?action=edit+20054 http://master.php.net/manage/user-notes.php?action=delete+20054 http://master.php.net/manage/user-notes.php?action=reject+20054

« previous php.notes (#28001) next »