atof

Example: atofData Type Conversion Functions

Converts a string to a floating point value.

double atof( const char *string);

string The string to convert.

atof reads the initial portion of the string only, by stopping at the first non-numerical character.

Return Values

The converted floating point value of the input string. On overflow the result is undefined. If an error occurs, returns 0.0.