From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,7e35f49d4d9340ab X-Google-Attributes: gidfc89c,public X-Google-Thread: 109fba,7e35f49d4d9340ab X-Google-Attributes: gid109fba,public X-Google-Thread: 1164f8,7e35f49d4d9340ab X-Google-Attributes: gid1164f8,public From: "Michael C. Grant" Subject: Re: Division by zero crashes on DEC should be avoidable! Date: 1998/03/06 Message-ID: <6dpuqm$2vk@camel21.mindspring.com>#1/1 X-Deja-AN: 331541078 References: <34FF7719.41C6@ned.dem.csiro.au> <6dpdce$jsg@gap.cco.caltech.edu> X-Server-Date: 6 Mar 1998 22:54:14 GMT X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: MindSpring Enterprises Newsgroups: comp.sys.dec,comp.lang.c++,comp.unix.programmer Folks, it really isn't very difficult to work with division by zero and infinities in computational code. In fact, it's a very useful idiom, and that's precisely the reason why the IEEE floating-point standards allow it. Don't criticize him unless you're familiar with his experience and knowledge in these matters. mathog@seqaxp.bio.caltech.edu wrote in message <6dpdce$jsg@gap.cco.caltech.edu>... >I consider think that it is a very bad idea to depend on your compiler having a >mode which will enable it to ignore invalid operation results (divide by zero). >(Except in languages with try/trap methods built into the standard.) Ok, so you >find the right switch, and the program no longer crashes at this illegal >operation, but what did it do with the resulting value? It runs to completion, >but is the answer correct???