octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NaN


From: John W. Eaton
Subject: NaN
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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]