Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Michael C. Grant" <mcgrant@mindspring.com>
Subject: Re: Division by zero crashes on DEC should be avoidable!
Date: 1998/03/06	[thread overview]
Message-ID: <6dpuqm$2vk@camel21.mindspring.com> (raw)
In-Reply-To: 6dpdce$jsg@gap.cco.caltech.edu


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???






  reply	other threads:[~1998-03-06  5:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-06  5:00 Division by zero crashes on DEC should be avoidable! Andrew Ellerton
1998-03-06  5:00 ` Ron Natalie
1998-03-06  5:00 ` Daniel S. Riley
1998-03-06  5:00 ` mathog
1998-03-06  5:00   ` Michael C. Grant [this message]
1998-03-06  5:00     ` Pierre Asselin
1998-03-08  5:00       ` Michael C. Grant
1998-03-06  5:00 ` Dag-Erling Coidan Sm�rgrav
1998-03-06  5:00   ` Michael C. Grant
1998-03-06  5:00     ` Jeffrey J. Potoff
1998-03-09  5:00     ` Dan A. Mercer
1998-03-06  5:00   ` John Wilson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox