[futurebasic] Re: Stuff

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

From: Peter Cone <brinc@...>
Date: Mon, 24 Nov 1997 17:59:49 -0500
>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       |
>========================================


Simple, I'm confused as usual, thinking * meant ^, which is not right
either because it also needs a factor 2.

And of course Al's above expression is correct, my apologies to Al & y'all.
I'll try to stick with lurking - I'm better at that - I think :).

Cheers,  Peter