In C / C++, atof() is a dedicated function for converting strings to floats (or doubles). ... char string[] = "10.66814"; float value = atof(string);.
確定! 回上一頁