Sometimes you want a floating point parameter.
double atof(const char *str)
This function inputs (a pointer to) a null-terminated string
and returns a double
.
If the parameter cannot be converted the function returns double precision 0.0.
Use #include <stdlib.h>