Depending on your context and needs either one of the following might provide a solution, however there are others like scanf().
Hope this helps
-pete
strtod, wcstod
Convert strings to a double-precision value.
double strtod( const char *nptr, char **endptr );
double wcstod( const wchar_t *nptr, wchar_t **endptr );
Each of these functions converts the input string nptr to a double.
atof, atoi, _atoi64, atol
Convert strings to double (atof), integer (atoi, _atoi64), or long (atol).
double atof( const char *string );
int atoi( const char *string );
__int64 _atoi64( const char *string );
long atol( const char *string );