C语言中atof函数功能及用法-CSDN博客

网站介绍:文章浏览阅读2.5w次,点赞4次,收藏23次。函数名: atof 功 能: 把字符串转换成浮点数 用 法: double atof(const char *nptr); 程序例: #include #include int main(void) { float f; char *str = "12345.67"; f = atof(str); printf("string = %s float = %f_atof函数