atof
Converts a string to double representation
#include <stdlib.h>
double atof (
const char *ptr);
atof returns the converted value. A value of 0 is returned when the input string cannot be converted. When an error has occurred, errno is set
The atof function converts the string pointed to by ptr to double representation.
#include <stdlib.h> main () { double x; x=atof("3.1415926"); }