I might try going back to infant school lol..

1+1=2
1-(-1)=2
-1-(-1) = 0

J.


-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Peter Bochan
Verzonden: maandag 22 maart 2004 13:47
Aan: [EMAIL PROTECTED]
Onderwerp: <lingo-l> (-1) or-(- 1)?


Hello,

In the Message Window:

x = -1
y = 1
put x,y
-- -1 1

put -x
-- 1 -- if I'm right, when two minuses collide, do they produce a plus?
put -y
-- -1

put -(-x)
-- -1 -- if I get it right, the result is -1 because initially x is -1.
So,
in brackets we assign it to minus again, and it becomes a plus, but
outside
the brackets it is assigned to minus again. So my question is: how come?
How
come two minuses produce a plus? Or do I have to go to infants' school
again?
put -(-y)
-- 1 -- same here. The initial value of y is +1. In the brackets it is
assigned to minus, but outside the brackets two minuses collide and
produce
a plus again.

TIA
peb965




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to