Converts an ASCII character string to a double-precision number.
#include <stdlib.h> double atof (const char *nptr);
[white-spaces][+|-]digits[radix-character][digits][e|E[+|-]integer]
Where radix-character is defined in the current locale.
The first unrecognized character ends the conversion.
This function is equivalent to strtod(nptr, (char**) NULL).
x | The converted value. |
0 | Indicates an underflow or the conversion could not be performed. The function sets errno to ERANGE or EINVAL, respectively. |
(+/- )HUGE_VAL | Indicates overflow; errno is set to ERANGE. |