translation updated for string.
[scilab.git] / scilab / modules / string / help / ja_JP / strtod.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5  * Copyright (C) INRIA - 
6  * 
7  * This file must be used under the terms of the CeCILL.
8  * This source file is licensed as described in the file COPYING, which
9  * you should have received as part of this distribution.  The terms
10  * are also available at    
11  * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
12  *
13  -->
14
15 <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">
16     
17     <refnamediv>
18         
19         <refname>strtod</refname>
20         
21         <refpurpose>文字列を倍精度実数に変換.</refpurpose>
22         
23     </refnamediv>
24     
25     <refsynopsisdiv>
26         
27         <title>呼び出し手順</title>
28         
29         <synopsis>
30             
31             d =  strtod(str [,decimalseparator])
32             
33             [d, endstr] = strtod(str [,decimalseparator])
34             
35         </synopsis>
36         
37     </refsynopsisdiv>
38     
39     <refsection>
40         
41         <title>引数</title>
42         
43         <variablelist>
44             
45             <varlistentry>
46                 
47                 <term>str</term>
48                 
49                 <listitem>
50                     
51                     <para>
52                         
53                         文字列または文字列の行列
54                         
55                     </para>
56                     
57                 </listitem>
58                 
59             </varlistentry>
60             
61             <varlistentry>
62                 
63                 <term>decimalseparator</term>
64                 
65                 <listitem>
66                     
67                     <para>
68                         
69                         選択した10進数セパレータ: "." (デフォルト) または ",".
70                         
71                     </para>
72                     
73                 </listitem>
74                 
75             </varlistentry>
76             
77             <varlistentry>
78                 
79                 <term>d</term>
80                 
81                 <listitem>
82                     
83                     <para>
84                         
85                         実数または実数の行列
86                         
87                     </para>
88                     
89                 </listitem>
90                 
91             </varlistentry>
92             
93             <varlistentry>
94                 
95                 <term>endstr</term>
96                 
97                 <listitem>
98                     
99                     <para>
100                         
101                         文字列または文字列の行列 
102                         
103                         (<varname>str</varname>の中で数値の後に続く文字).
104                         
105                     </para>
106                     
107                 </listitem>
108                 
109             </varlistentry>
110             
111         </variablelist>
112         
113     </refsection>
114     
115     <refsection>
116         
117         <title>説明</title>
118         
119         <para>
120             
121             <code>[d, endstr] = strtod(str)</code> は,
122             
123             文字列<varname>str</varname> を
124             
125             パースし,その内容を浮動小数点数として解釈して,
126             
127             その値を実数として返します.
128             
129             <varname>str</varname>に数値が含まれていない場合,
130             
131             <varname>d</varname> は <literal>Nan</literal>となります.
132             
133         </para>
134         
135     </refsection>
136     
137     <refsection>
138         
139         <title>注意</title>
140         
141         <itemizedlist>
142             
143             <listitem>
144                 
145                 <para>
146                     
147                     この関数はWindowsとLinuxで動作が異なるstrtod C関数に基づきます.
148                     
149                     実際, Windows では指数部にd または D を使用できますが,
150                     
151                     16進数を使用することはできません.
152                     
153                 </para>
154                 
155             </listitem>
156             
157             <listitem>
158                 
159                 <para>
160                     
161                     <literal>strtod("%inf")</literal> は <literal>Nan</literal>を
162                     
163                     返すことに注意してください.
164                     
165                 </para>
166                 
167             </listitem>
168             
169         </itemizedlist>
170         
171     </refsection>
172     
173     
174     
175     <refsection>
176         
177         <title>例</title>
178         
179         <programlisting role="example"><![CDATA[
180 strtod('123.556This is a sample real')
181 strtod('123,556This is a sample real', ",")
182 [d,endstr] = strtod('123.556This is a sample real')
183 strtod(['123.556This is a sample real','888.666 here'])
184 [d,endstr] =strtod(['123.556This is a sample real','888.666 here'])
185 [d,endstr] =strtod(['123.556This is a sample real','888,666 here'], ",")
186  ]]></programlisting>
187         
188     </refsection>
189     
190     <refsection>
191         
192         <title>履歴</title>
193         
194         <revhistory>
195             
196             <revision>
197                 
198                 <revnumber>5.5.0</revnumber>
199                 
200                 <revremark>
201                     
202                     新しいオプション入力: decimalseparator (SEP 97).
203                     
204                 </revremark>
205                 
206             </revision>
207             
208             <revision>
209                 
210                 <revnumber>5.4.1</revnumber>
211                 
212                 <revremark>
213                     
214                     <varname>str</varname> に数値が含まれていない場合,
215                     
216                     <varname>d</varname> は以前のバージョンのように
217                     
218                     <literal>0</literal>ではなく,
219                     
220                     <literal>Nan</literal>となります.
221                     
222                 </revremark>
223                 
224             </revision>
225             
226         </revhistory>
227         
228     </refsection>
229     
230 </refentry>
231