after some playing i found a simpler way:
Code:negative=x.31 ' Save the sign bit x=(ABS x)>>8 ' Shift the absolute value IF negative THEN x=0-x ' Make negative again
after some playing i found a simpler way:
Code:negative=x.31 ' Save the sign bit x=(ABS x)>>8 ' Shift the absolute value IF negative THEN x=0-x ' Make negative again
Last edited by Kamikaze47; - 26th April 2010 at 17:55.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
Bookmarks