ID: 16593 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: *Math Functions Operating System: Win XP PHP Version: 4.1.2 New Comment:
^ is the XOR operator, not the exponential operator. Use pow() for that. Previous Comments: ------------------------------------------------------------------------ [2002-04-14 02:17:34] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=16593&edit=1
