Free Republic
Browse · Search
News/Activism
Topics · Post Article

To: vrwc1
If you divide an integer by an integer in your computer program you will get an integer result.

I almost overlooked this. When a computer does integer division it does yield integer results. Except when it divides by zero. This usually pitches an exception error. You deal with it using exception handlers and, as part of the exception handler, you set your variable storing the answer to formula that divided by zero to null or your arbitrary value like I talked about in post #100. At least you'd better use exception handlers, because if you don't, that pacemaker the article talks about gets a BSOD and someone's heart stops.
112 posted on 12/08/2006 1:14:17 PM PST by JamesP81 (If you have to ask permission from Uncle Sam, then it's not a right)
[ Post Reply | Private Reply | To 71 | View Replies ]


To: JamesP81
because if you don't, that pacemaker the article talks about gets a BSOD and someone's heart stops.

Aptly named, in this macabre instance.

303 posted on 12/08/2006 9:58:36 PM PST by grey_whiskers (The opinions are solely those of the author and are subject to change without notice.)
[ Post Reply | Private Reply | To 112 | View Replies ]

Free Republic
Browse · Search
News/Activism
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson