[futurebasic] Re: Binary help (somewhat OT)

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

From: tatewake@... (Terence Jordan)
Date: Tue, 18 Nov 1997 17:11:44 -0400
>
>0000000000001010 - 10
>0000000000001000 - 8
>-----------------
>0000000000000010 - 2
>
>On the other hand if you wanted to 10 - 12, you'd get an overflow condition
>cause you're in the negative portion of the binary world. i.e. there's
>nothing to borrow from.

Well, unless you do what some computers do, and use the MSB as some sort of
negative bit:
0000000000001010 - 10
0000000000001100 - 12
-----------------
1111111111111110 - -2

Right?
But then that does constitute as an overflow, doesn't it? :-)



-- Terence Jordan (tatewake@...)
Inspired Software. http://inspired.netstreet.net/
Macintosh, Dos, Windows, and BeOS software solutions.
Phone: 407-728-7563
............................................
. New: Renegade Space Ninja for Macintosh! .
.      Visit our page for more info.       .
............................................