Index: [thread] [date] [subject] [author]
  From: John Dat Tran <jdt5@acpub.duke.edu>
  To  : 
  Date: Mon, 01 Feb 1999 22:32:56 -0500

Unary Negation Operator

I'm having trouble trying to understand the point of the "-" operator.
How do we differentiate between making a number negative and subtracting
from the previous answer?

For example, what should happen in this test run:

> b = 6
6
> 3 + 4
7
> - b

Should this subtract 6 from 7 or should this make b equal to -6?

Thanks.



Index: [thread] [date] [subject] [author]