[futurebasic] Re: Stuff

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1997 : Group Archive : Group : All Groups

From: David Blache <microcsm@...>
Date: Mon, 24 Nov 97 07:01:23 -0600
Peter Cone wrote:

>>Al Staffieri Jr. suggested:
>>X = X - (X * 2)
>>
>>If X is a negative number, it will become positive. If it's positive it will
>>become a negative.
>
>True but not -X in either case!     {:-[
>
>Perhaps Al meant X = X - (X * 2)/X, which does work for negating X.

How do you figure?  4 - (4 * 2) / 4 = 2 <--(??)

========================================
|       David Blache - Developer       |
========================================
|   Staz Software, Inc - Stazologist   |
|        (tech@...)       |
|   Microcosm Software, Inc. - Owner   |
|        (microcsm@...)        |
========================================