Post Reply 
NaN
12-15-2014, 10:04 AM
Post: #3
RE: NaN
Hello,

(12-14-2014 11:07 PM)mpowell@rogershsa.com Wrote:  I notice that I seen the letters "NaN" in some of my results from a calculation? What is it?


NaN means Not a Number. This is in fact a 'special' number that is the result of some low lever operations such as 0/0 or 0^0...

As a general rule, any function that has an input of NaN will return a NaN.
This allows sloppy programmer to perform a sequence of floating points operations without having to check the result of each operation for errors as, once one function returns a NaN, all subsequent calculations will return NaN...

As a general rules, when a low level functions create such things, it should be caught and a proper error should be returned to the user (throughout the rule does not always apply)...

Could you tell us how you generated this NaN so that we can see if this is normal or Not?

Cyrille
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
NaN - mpowell@rogershsa.com - 12-14-2014, 11:07 PM
RE: NaN - Helge Gabert - 12-14-2014, 11:19 PM
RE: NaN - cyrille de brébisson - 12-15-2014 10:04 AM
RE: NaN - Thomas Klemm - 12-16-2014, 09:04 AM



User(s) browsing this thread: 2 Guest(s)