1753797 Members
8986 Online
108805 Solutions
New Discussion юеВ

RH 7.3 and NaN

 
Shameem Akhter_1
Occasional Contributor

RH 7.3 and NaN

Hi,

Anybody encountered any issue related to NaN for a floating point operation on xw8000 RedHat 7.3 platform. If so, please let me know. I am currently investigating an issue which relates to NaN.

Regards,

-- SA
4 REPLIES 4
Paul Cross_1
Respected Contributor

Re: RH 7.3 and NaN

I have to ask: What's Nan?
Shameem Akhter_1
Occasional Contributor

Re: RH 7.3 and NaN

NaN stands for "Not A Number".
Abdul Rahiman
Esteemed Contributor

Re: RH 7.3 and NaN

I got a thread from a google search, this may help.. just being a search helper ..

http://www.linuxquestions.org/questions/archive/9/2004/01/2/133415
No unix, no fun
David Asgeirsson
Valued Contributor

Re: RH 7.3 and NaN

I do a lot of scientific programming in physics, so I've seen these all the time. There is a bug somewhere in your program.

Some of the main ones are:

-divide by zero
-log of a negative number
-sqrt of a negative number
-passing a float to a function expecting a double and vice-versa

It is the systems way of saying that you have performed illegal arithmetic. These problems should be basically platform independent, the NaN response I believe is based on IEEE floating point standards.

Sorry, it looks like you will need to debug some code.