note 22448 added to function.pow
| From: | xftp at yahoo dot com | Date: | Tue, 18 Jun 2002 18:07:47 +0000 |
| Subject: | note 22448 added to function.pow | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31984@lists.php.net to get a copy of this message | ||
I spent more than 1 day troubleshooting a financial formula, then i found out that 2^3 = 1 in php!
not 8 i dont understand why the php developers didnt think of a standard way of doing this why
create a pow function? perl uses ** operator 2**3=8 , excel uses the ^ operator 2^3=8, and php the
pow function... pow(2,3)=8
--
http://www.php.net/manual/en/function.pow.php
http://master.php.net/manage/user-notes.php?action=edit+22448
http://master.php.net/manage/user-notes.php?action=delete+22448
http://master.php.net/manage/user-notes.php?action=reject+22448