Re: math.e and misc.e
- Posted by CChris <christian.cuvier at agricult?re.go?v.fr> Aug 04, 2007
- 439 views
Juergen Luethje wrote: > > Jason Gade wrote: > > <snip> > > > Um, why not just use 'nan'? > > I also have thought of 'nan', but I didn't suggest it because I don't know > whether it is actually supported by the Eu interpreters and translators on > all platforms. > > > It should be relatively easy to generate. > > <a > > href="http://www.rapideuphoria.com/cgi-bin/guru.exu?refDoc=on&libDoc=on&otherDoc=on&keywords=nan">http://www.rapideuphoria.com/cgi-bin/guru.exu?refDoc=on&libDoc=on&otherDoc=on&keywords=nan</a> > > Regards, > Juergen From %EUDIR%\SOURCE\global.e, line 205: global constant NOVALUE = -1.295837195871e307 -- An unlikely number. If it occurs naturally, -- there will be a slight loss of optimization -- as we will not know the value of a variable at compile time. -- (NaN could be used, but it's not 100% portable). I'm afraid ther ar some pesky intercompiler differences that just prevent it from being used, even though it was the very purpose of NaN in IEEE specs. CChris