atof
Convert
ASCII
to
Floating
Point
atof
Syntax
double
atof(nptr)
char *nptr;
Description
This function converts a string
of
ASCII characters
to
floating-point
values.
.
6-4
The string
is
given in the format:
[space]
[sign]digits[.digits]
[eIE[sign] integer]
The
space
shown
in the format
is
white
space and
is
indicated by a space-
bar, horizontal
or
vertical tab, carriage return, form feed,
or
newline. Fol-
lowing
the space indicator is
an
optional sign, and then digits representing
the integer part
of
the number. The fractional part
of
the number follows,
then the
exponent,
including
the
option
of
a sign.
The first unrecognized character terminates the string.
The
ata! function does
not
account for any overflow resulting from the
conversion .