Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 PHP doesn't recognize x^y?
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Amailer




PostPosted: Wed Jan 24, 2007 2:49 pm   Post subject: PHP doesn't recognize x^y?

I always thought to raise a number to a power of another you could simply do x^y, but that doesn't work in PHP (anymore I think..), I have to do pow(x,y) oO, is this normal or is something wrong with my php? All the other operations work, + * / -

Or am I just speaking non-sense and ^ was never recognized :/
Sponsor
Sponsor
Sponsor
sponsor
zylum




PostPosted: Wed Jan 24, 2007 3:15 pm   Post subject: RE:PHP doesn\'t recognize x^y?

in java and c, the ^ operator is xor, maybe the same applies to php?
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: