Update help page of strtod after bug #5073 74/12474/2
Charlotte HECQUET [Tue, 10 Sep 2013 08:16:03 +0000 (10:16 +0200)]
Change-Id: I64c02dcc3e4e53df291ed2903e29c1d27bc071f4

scilab/modules/string/help/en_US/strtod.xml

index b12b9f3..cd668f0 100644 (file)
@@ -18,8 +18,8 @@
     <refsynopsisdiv>
         <title>Calling Sequence</title>
         <synopsis>
-            d =  strtod(str)
-            [d, endstr] = strtod(str)
+            d =  strtod(str [,decimalseparator])
+            [d, endstr] = strtod(str [,decimalseparator])
         </synopsis>
     </refsynopsisdiv>
     <refsection>
                 </listitem>
             </varlistentry>
             <varlistentry>
+                <term>decimalseparator</term>
+                <listitem>
+                    <para>
+                        the decimal separator chosen: "." (by default) or ",".
+                    </para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
                 <term>d</term>
                 <listitem>
                     <para>
         <title>Examples</title>
         <programlisting role="example"><![CDATA[ 
 strtod('123.556This is a sample real')
+strtod('123,556This is a sample real', ",")
 [d,endstr] = strtod('123.556This is a sample real')
 strtod(['123.556This is a sample real','888.666 here'])
 [d,endstr] =strtod(['123.556This is a sample real','888.666 here'])
+[d,endstr] =strtod(['123.556This is a sample real','888,666 here'], ",")
  ]]></programlisting>
     </refsection>
     <refsection>
         <title>History</title>
         <revhistory>
             <revision>
+                <revnumber>5.5.0</revnumber>
+                <revremark>
+                    New optional input: decimalseparator (SEP 97).
+                </revremark>
+            </revision>
+            <revision>
                 <revnumber>5.4.1</revnumber>
                 <revremark>
                     If <varname>str</varname> does not contain any numerical value then <varname>d</varname> equals <literal>Nan</literal> instead of <literal>0</literal> in previous versions.