what does NaN mean out of printf?

Cliff Marcellus cliff at cpsc.ucalgary.ca
Wed Jul 19 23:21:59 AEST 1989


In article <20283 at adm.BRL.MIL>, Leisner.Henr at xerox.com (Marty) writes:
> What does NaN mean out of printf?
> 

"NaN" stands for "Not a Number".  It's an error generated by various
mathlib routines, and is defined by IEEE for various binary function
operations.  (for example log10(0))

See the MATH(3M) manual page under 4.3BSD.


Cliff Marcellus                UUCP     : {any backbone}!calgary!ssg-vax-a!cliff
Institute for Space Research   DOMAIN   : cliff at ssg-vax-a.phys.UCalgary.CA
Dept of Physics and Astronomy  SPAN     : CANCAL::CLIFF
The University of Calgary                 "If it's not fun, don't do it!"



More information about the Comp.unix.wizards mailing list