[OT] -10^2

Geoff Canyon gcanyon at inspiredlogic.com
Fri May 23 09:35:00 EDT 2003


I was assuming there were other values on the stack beneath the given 
expression. In other words how would you make the - negate the 10^2 
portion of this instead of subtracting 5 from it?

5 10  2  ^  -  *

What I want is this:

(-(10^2))*5

On Friday, May 23, 2003, at 12:40  AM, Jan Schenkel wrote:

> So in this case, after all the firsty three bits are
> interpreted, there's only a single operand left on the
> stack for the minus, so it acts as the unary operator.

regards,

Geoff Canyon
gcanyon at inspiredlogic.com




More information about the use-livecode mailing list