From maintainers-request at octave dot org Wed Apr 12 11:30:23 2006 Subject: NaN From: "John W. Eaton" To: "Shai Ayal" Cc: "octave maintainers mailing list" Date: Wed, 12 Apr 2006 12:30:15 -0400 On 11-Apr-2006, Shai Ayal wrote: | In trying to implement NaN's for octplot I took some of the code from | octave, which includes a run-time calculation of NaN | | Is there any any reason that it was implemented this way and not by | using the nan function (C99 standard) or strtod("NaN",0), which is | supposed to be ANSI C? | | (these two ways were pointed to me by Bruno Rogerri) Octave has been around longer than c99. I didn't know about strtod ("NaN", 0), but I'm not sure I would have used this method anyway, even if I had. jwe