Translations of this page?:

atof

文法:

    #include <cstdlib>
    double atof( const char *文字列 );

atof()は文字列を倍精度浮動小数点数に変換して返します。文字列は適正な数値で始まっていなければなりません。”E”もしくは”e”以外の数字以外の文字が現れると、そこで変換を中止します。

サンプル:

     x = atof( "42.0 が答えです" );

xには42.0が格納されます。

関連トピック: atoi, atol, sprintf, strtod

 
• • • SitemapRecent changesRSScc