what does NaN mean out of printf?

Roy Smith roy at phri.UUCP
Wed Jul 19 11:34:31 AEST 1989


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

	You're on a machine which supports IEEE-754 arithmetic (for
example, a Sun, but there are many, many modern machines which fit this
description).  NaN means Not A Number.  NaN is the result of some illegal
arithmetic operation (division by zero, square root of a negative number,
etc).
-- 
Roy Smith, Public Health Research Institute
455 First Avenue, New York, NY 10016
{att,philabs,cmcl2,rutgers,hombre}!phri!roy -or- roy at alanine.phri.nyu.edu
"The connector is the network"



More information about the Comp.unix.wizards mailing list