Name
atof function — Converts a string to floating point
Synopsis
double atof(const char* str)
The atof
function reads a
floating-point number from the character array str
and returns the value of the
floating-point number. The conversion is similar to calling strtod(str
, NULL)
.
See Also
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.