Computer Science Canada Binary Subtraction |
Author: | Pa|2a|)oX [ Sun Feb 20, 2005 11:00 am ] |
Post subject: | Binary Subtraction |
This program took me a shorter time to make because I knew what I was doing now. This uses ones and twos compliment to subtract digits, and as so is inherently only able to subtract a maximum of 7 bits (127 in decimal). No shortcuts, and this one is relatively well error trapped, it will tell you if you overflowed, and if you entered a wrong answer of some sort. The binary input section is not error trapped, only 1s and 0s may be inputed or it will crash. Thanks |
Author: | person [ Sun Feb 20, 2005 11:56 am ] |
Post subject: | |
its pretty good although errortrap would have been nice |