SO like, whenever a divide by zero is encountered it is caught by the cpu and the program dies, right???
what would happen if I hooked that interrupt so that no stupid kill-my-program routine would happen? What would the result of the divide be?
SO like, whenever a divide by zero is encountered it is caught by the cpu and the program dies, right???
what would happen if I hooked that interrupt so that no stupid kill-my-program routine would happen? What would the result of the divide be?
flashdaddee.com rocks!!!
Well your question isn't very clear. First of all, the result would be infinity, or UNDEFINED, so there's no way to tell the interrupt to do this, unless you do a bit of processing yourself. Check to see if the denominator is 0, if it is, just send back however you want to write infinity, and don't call the interrupt. If it isn't 0, no problem.
anything divided by 0 is not infinity, you can either call it undefined or no result, per math laws, deviding by 0 is impossible
I wonder how computer gurus back in the day first discovered that dividing by 0 was a no-no?
(flashback to tech guys running around with fire hoses trying to cool down their processors which are caught in infinite loops of death)
Couldnt they have just used 'Ctrl + Alt + Pull power cord' :?
Signature is optional, I didnt opt for one.
ummmmm, they knew that dividing by zero was no good when they took 5th grade math.Originally posted by Waldo2k2
I wonder how computer gurus back in the day first discovered that dividing by 0 was a no-no?
(flashback to tech guys running around with fire hoses trying to cool down their processors which are caught in infinite loops of death)
hello, internet!
>>5th grade math
hmmm...then why the hell do so many programs out there divide by 0? is it that those programmers didn't take 5th grade math? No, it's because they didn't realize it was going to happen. I bet if you were one of those original programmers you wouldn't have thought about it either. I'm sick of people flaming other people on these boards, especially when it was just meant to be a joke in the first place, i mean come on, can't you just picture guys running around a room with fire extinguishers trying to put out these huge spinning tape drives? damn.
PHP and XML
Let's talk about SAX