Converts a number-representing string to a double type floating-point number.
double atof (const char *nptr);
nptr Pointer to a number-representing string to be converted
Converted data as a double type floating-point number
If the converted result overflows or underflows, errno is set.
Data is converted up to the first character that does not fit the floating-point data type.
The atof function does not guarantee the return value if an error such as an overflow occurs. When you want to acquire the guaranteed return value, use the strtod function.