Atof() is the C runtime library function for converting the ASCII representation of a number to a floating point double.
Strtod is the C standard library function for converting an ASCII string into a floating-point number.
"Edit basile starynkevitch mentions that strtod is better than atof for this job as it gives the ending character"
from question "Find all numbers in txt file"
"You can actually switch to strtod always a much better idea than atof and ask it to give you the character position that caused it to stop parsing"
from question "Atof() is not taking entire value in symbian"