note 12927 deleted from function.pow by jimw
| From: | jimw@php.net | Date: | Tue, 18 Dec 2001 23:04:42 +0000 |
| Subject: | note 12927 deleted from function.pow by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23301@lists.php.net to get a copy of this message | ||
Becareful when using this function in situations where you might be taking an odd root of a negative
number.
IE pow(-.2344,(1/3)); // will return NAN
I worked around this by testing the number to see if it was negative, switching it to postive if it
was, and then reswitching it back after the power function was called.