[futurebasic] Re: Stuff

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

From: AlStaff@...
Date: Sun, 23 Nov 1997 05:13:07 -0500 (EST)
<< Is there a quick, one command way of changing the sign of a number... say
from 102.092 to -102.092? >>


X = X - (X * 2)

If X is a negative number, it will become positive. If it's positive it will
become a negative.


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html