From: Steve Lionel <Steve.Lionel@compaq.com>
Subject: Re: New Alpha programmer seeks info on double precision comparison exception
Date: 2000/01/06 [thread overview]
Message-ID: <3gt97sgselonsf82lcicdu0u2j4d2fcb6j@4ax.com> (raw)
In-Reply-To: d76d4.16$z87.188652@news.bctel.net
On Thu, 6 Jan 2000 11:35:16 -0800, "Peter Willis"
<peterw@coastnet.com> wrote:
>The problem I am having is with MS visual C++ and a small console program
>that I am running.
>
>On the alpha microprocessors how do I keep the boolean comparison of two
>double precision floating point numbers from generating an exception?
>
>Why would this generate an illegal floating point operation exception.
>
>ie:
>double a,b;
>
>if(a > b) /*exception is generated at this point*/
Most likely, one of a or b is not a valid floating point value. It
could be an exceptional value or a denorm - by default, these are
considered invalid. I know that in Compaq's compilers there is an
option to allow these types of values to be used, but I don't know
offhand what it is in MSVC (which reminds me that you posted in a
Linux newsgroup, and MSVC doesn't run there...)
The most likely situation is that a or b is uninitialized or you have
an error in argument passing.
Steve Lionel (mailto:Steve.Lionel@compaq.com)
Fortran Engineering
Compaq Computer Corporation, Nashua NH
Compaq Fortran web site: http://www.compaq.com/fortran
next prev parent reply other threads:[~2000-01-06 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-06 5:00 New Alpha programmer seeks info on double precision comparison exception Peter Willis
2000-01-06 5:00 ` Steve Lionel [this message]
2000-01-06 5:00 ` Greg Lindahl
2000-01-07 5:00 ` Christopher Browne
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