c语言atof函数
C ++ atof()函数 (C++ atof() function)
atof() functionis a library function ofcstdlibheader. It is used to convert the given string value to the double value. It accepts a string containing a floating-point number and returns its double value.
atof()函数是cstdlib标头的库函数。 它用于将给定的字符串值转换为双精度值。 它接受包含浮点数的字符串,并返回其双精度值。
Syntax of atof() function:
atof()函数的语法:
C++11:
C ++ 11:
double atof (const char* str);
Parameter(s):
参数:
str – represents a string containing a floating-point number.
str –表示包含浮