-10^2
Richard Gaskin
ambassador at fourthworld.com
Wed May 21 14:15:00 EDT 2003
tom farrell wrote:
> The expression:
> -10^2
> should evaluate to -100, not 100, because it means "the opposite of
> ten squared", not "negative 10, squared".
>
> But if I put the expression in the message box, it evaluates to 100.
> Is this done on purpose?
You can force a specific order of operator precedence with parens:
-(10^2)
--
Richard Gaskin
Fourth World Media Corporation
Developer of WebMerge 2.2: Publish any database on any site
___________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
Tel: 323-225-3717 AIM: FourthWorldInc
More information about the use-livecode
mailing list