赛派号

哪个牌子卫生巾合格质量好又便宜 C Language: atof function (Convert String to Floating

C Language: atof function(Convert String to Floating-Point)

In the C Programming Language, the atof function converts a string to a floating-point number (double).

The atof function skips all white-space characters at the beginning of the string, converts the subsequent characters as part of the number, and then stops when it encounters the first character that isn't a number.

Syntax

The syntax for the atof function in the C Language is:

double atof(const char *nptr); Parameters or Arguments nptr A pointer to a string to convert to a floating-point number (double). Returns

The atof function returns the floating-point representation of a string. The atof function skips all white-space characters at the beginning of the string, converts the subsequent characters as part of the number, and then stops when it encounters the first character that isn't a number.

Required Header

In the C Language, the required header for the atof function is:

#include Applies To

In the C Language, the atof function can be used in the following versions:

ANSI/ISO 9899-1990 Similar Functions

Other C functions that are similar to the atof function:

atoi function atol function strtod function See Also

Other C functions that are noteworthy when dealing with the atof function:

strtol function strtoul function

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至lsinopec@gmail.com举报,一经查实,本站将立刻删除。

上一篇 没有了

下一篇没有了