Everything

atof


Converts a number-representing string to a double type floating-point number.

[Format]

#include <stdlib.h>

double atof (const char *nptr);

[Parameters]

nptr Pointer to a number-representing string to be converted

[Return values]

Converted data as a double type floating-point number

[Remarks]

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.