Apparently, divide by zero causes a fixed point exception but not for floating point.

Craig

On May 3, 2010, at 12:11 PM, C N Davies wrote:

Thanks Richard you were right it was a 0.0 / 0.0 which I would have thought would have generated a divide by zero exception which I do capture, but apparently not *shrug*. Also 0 divide by zero I would have thought was zero
... I learned 2 new things today!

Thanks!

Chris


-----Original Message-----
From: Landers, Richard [mailto:[email protected]]
Sent: Tuesday, 4 May 2010 3:38 AM
To: '[email protected]'
Subject: RE: What is a NaN?


Could you have arithmetic gone bad before persisting?

        0.0 / 0.0
        Sqrt(-something)
        Inf - Inf

http://www.concentric.net/~Ttwang/tech/javafloat.htm has other examples.


-----Original Message-----
From: C N Davies [mailto:[email protected]]
Sent: Monday, May 03, 2010 1:05 PM
To: [email protected]
Subject: RE: What is a NaN?

No, just a str8 insert :(


-----Original Message-----
From: Daryl Stultz [mailto:[email protected]]
Sent: Tuesday, 4 May 2010 2:54 AM
To: [email protected]
Subject: Re: What is a NaN?

On Mon, May 3, 2010 at 12:09 PM, C N Davies <[email protected]> wrote:

I guess it is "Not a Number",

A long shot: do you have any JavaScript involved?

--
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]





Craig L Russell
Architect, Oracle
http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Reply via email to