


      ATOF(3C)                    (UNIX 5.0)                   ATOF(3C)



      NAME
           atof - convert ASCII string to floating-point number

      SYNTAX
           double atof (nptr)
           char *nptr;

      DESCRIPTION
           Atof converts a character string pointed to by nptr to a
           double-precision floating-point number.  The first
           unrecognized character ends the conversion.  Atof recognizes
           an optional string of white-space characters, then an
           optional sign, then a string of digits optionally containing
           a decimal point, then an optional e or E followed by an
           optionally signed integer.  If the string begins with an
           unrecognized character, atof returns the value zero.

      DIAGNOSTICS
           When the correct value would overflow, atof returns HUGE,
           and sets errno to ERANGE.  Zero is returned on underflow.

      SEE ALSO
           scanf(3S).
































      Page 1                                         (73 A2 02MTA REV1)



