note 20054 deleted from function.pow by nlopess
| From: | nlopess@php.net | Date: | Sun, 22 Feb 2004 20:08:05 +0000 |
| Subject: | note 20054 deleted from function.pow by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65550@lists.php.net to get a copy of this message | ||
Note Submitter: steven@dhtmlshock.com
----
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);