b4615d359bb497fd746f62a787001939262ecad2
[scilab.git] / scilab / modules / string / help / ja_JP / strtod.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA - 
5  * 
6  * This file must be used under the terms of the CeCILL.
7  * This source file is licensed as described in the file COPYING, which
8  * you should have received as part of this distribution.  The terms
9  * are also available at    
10  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
11  *
12  -->
13 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strtod" xml:lang="ja">
14     <refnamediv>
15         <refname>strtod</refname>
16         <refpurpose>文字列を倍精度実数に変換.</refpurpose>
17     </refnamediv>
18     <refsynopsisdiv>
19         <title>呼び出し手順</title>
20         <synopsis>
21             d =  strtod(str [,decimalseparator])
22             [d, endstr] = strtod(str [,decimalseparator])
23         </synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>引数</title>
27         <variablelist>
28             <varlistentry>
29                 <term>str</term>
30                 <listitem>
31                     <para>
32                         文字列または文字列の行列
33                     </para>
34                 </listitem>
35             </varlistentry>
36             <varlistentry>
37                 <term>decimalseparator</term>
38                 <listitem>
39                     <para>
40                         選択した10進数セパレータ: "." (デフォルト) または ",".
41                     </para>
42                 </listitem>
43             </varlistentry>
44             <varlistentry>
45                 <term>d</term>
46                 <listitem>
47                     <para>
48                         実数または実数の行列
49                     </para>
50                 </listitem>
51             </varlistentry>
52             <varlistentry>
53                 <term>endstr</term>
54                 <listitem>
55                     <para>
56                         文字列または文字列の行列 
57                         (<varname>str</varname>の中で数値の後に続く文字).
58                     </para>
59                 </listitem>
60             </varlistentry>
61         </variablelist>
62     </refsection>
63     <refsection>
64         <title>説明</title>
65         <para>
66             <literal>[d, endstr] = strtod(str)</literal> は,
67             文字列<varname>str</varname> を
68             パースし,その内容を浮動小数点数として解釈して,
69             その値を実数として返します.
70             <varname>str</varname>に数値が含まれていない場合,
71             <varname>d</varname> は <literal>Nan</literal>となります.
72         </para>
73     </refsection>
74     <refsection>
75         <title>注意</title>
76         <itemizedlist>
77             <listitem>
78                 <para>
79                     この関数はWindowsとLinuxで動作が異なるstrtod C関数に基づきます.
80                     実際, Windows では指数部にd または D を使用できますが,
81                     16進数を使用することはできません.
82                 </para>
83             </listitem>
84             <listitem>
85                 <para>
86                     <literal>strtod("%inf")</literal> は <literal>Nan</literal>を
87                     返すことに注意してください.
88                 </para>
89             </listitem>
90         </itemizedlist>
91     </refsection>
92     <refsection>
93         <title>例</title>
94         <programlisting role="example"><![CDATA[
95 strtod('123.556This is a sample real')
96 strtod('123,556This is a sample real', ",")
97 [d,endstr] = strtod('123.556This is a sample real')
98 strtod(['123.556This is a sample real','888.666 here'])
99 [d,endstr] =strtod(['123.556This is a sample real','888.666 here'])
100 [d,endstr] =strtod(['123.556This is a sample real','888,666 here'], ",")
101  ]]></programlisting>
102     </refsection>
103     <refsection>
104         <title>履歴</title>
105         <revhistory>
106             <revision>
107                 <revnumber>5.5.0</revnumber>
108                 <revremark>
109                     新しいオプション入力: decimalseparator (SEP 97).
110                 </revremark>
111             </revision>
112             <revision>
113                 <revnumber>5.4.1</revnumber>
114                 <revremark>
115                     <varname>str</varname> に数値が含まれていない場合,
116                     <varname>d</varname> は以前のバージョンのように
117                     <literal>0</literal>ではなく,
118                     <literal>Nan</literal>となります.
119                 </revremark>
120             </revision>
121         </revhistory>
122     </refsection>
123 </refentry>