Bug #16593: x^y gives unusual results
| From: | paul at keteracel dot com | Date: | Sun, 14 Apr 2002 06:17:34 +0000 |
| Subject: | Bug #16593: x^y gives unusual results | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4938@lists.php.net to get a copy of this message | ||
From: paul@keteracel.com
Operating system: Win XP
PHP version: 4.1.2
PHP Bug Type: *Math Functions
Bug description: x^y gives unusual results
x^y should always yield a positive number, however when doing -2^2 and
(-2)^2, I get a result of -4!
Surely this aint right?
--
Edit bug report at http://bugs.php.net/?id=16593&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16593&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16593&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16593&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16593&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16593&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16593&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16593&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16593&r=submittedtwice