(ANSI Standard)
#include <stdlib.h> x = atof(s);
"atof" converts the string pointed to by "s" into a floating point number. The string may consist of any number of blanks and/or tabs, possibly followed by a sign, followed by a string of digits that may contain a decimal point, then an 'e' or 'E' possibly followed by a sign, followed by an integer. Conversion stops with the first character that cannot belong to such a floating point number.
Copyright © 1996, Thinkage Ltd.