View Single Post
  #16  
Old 12-03-2005, 10:18 AM
punter11235 punter11235 is offline
Senior Member
 
Join Date: Mar 2005
Location: Poland
Posts: 198
Default Re: Simple math/syntax problem

[ QUOTE ]
-5^2 = -5 * 5 = -25.

This is the correct order of operations.

[/ QUOTE ]

[img]/images/graemlins/confused.gif[/img]

-5^2 is either -(5^2) or (-5)^2
depending on priorities of "-" where "-" is symbol which change expression's sign not substracting.
Reply With Quote