设为首页 加入收藏

TOP

atof 字符串
2011-03-22 13:08:52 】 浏览:1235
Tags:atof 字符串

atof

语法:

  #include <stdlib.h>  double atof( const char *str );
 

功能:将字符串str转换成一个双精度数值并返回结果。 参数str

必须以有效数字开头,但是允许以“E”或“e”除外的任意非数字字符结尾。例如:    x = atof( "42.0is_the_answer" );

x的值为42.0.

相关主题:


atoi() and atol().
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇atoi字符串 下一篇vprintf, vfprintf和 vsprintf 语..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目