Browse Source

Pascal Scripting: The already-existing StrToFloat and FloatToStr functions are now documented.

Martijn Laan 11 years ago
parent
commit
bbcb25d6bf
2 changed files with 12 additions and 1 deletions
  1. 11 1
      ishelp/isxfunc.xml
  2. 1 0
      whatsnew.htm

+ 11 - 1
ishelp/isxfunc.xml

@@ -883,10 +883,20 @@ end;</pre></example>
         <description><p>The StrToInt64 function converts the string passed in S into a 64-bit number.</p><p>Requires Unicode Inno Setup.</p></description>
         <remarks><p>Use of <link topic="isxfunc_StrToInt64Def">StrToInt64Def</link> instead of StrToInt64 is recommended.</p></remarks>
       </function>
+      <function>
+        <name>StrToFloat</name>
+        <prototype>function StrToFloat(s: string): Extended;</prototype>
+        <description><p>The StrToFloat function converts the string passed in S into a floating point number. The character used for the decimal point should always be a dot.</p></description>
+      </function>
       <function>
         <name>IntToStr</name>
         <prototype>function IntToStr(i: Int64): String;</prototype>
-        <description><p>The IntToStr function converts an 32-bit or 64-bit number into a string containing the decimal representation of that number.</p><p>64-bit numbers require Unicode Inno Setup.</p></description>
+        <description><p>The IntToStr function converts an 32-bit or 64-bit number into a string.</p><p>64-bit numbers require Unicode Inno Setup.</p></description>
+      </function>
+      <function>
+        <name>FloatToStr</name>
+        <prototype>function FloatToStr(e: extended): String;</prototype>
+        <description><p>The FloatToStr function converts a floating point number into a string.</p><p>Unicode Inno Setup: the character used for the decimal point will always be a dot. Non-Unicode Inno Setup: the character used for the decimal point is locale-dependant.</p></description>
       </function>
     </subcategory>
     <subcategory>

+ 1 - 0
whatsnew.htm

@@ -28,6 +28,7 @@ For conditions of distribution and use, see <a href="http://www.jrsoftware.org/f
 
 <p><a name="5.5.5"></a><span class="ver">5.5.5-dev </span><span class="date">(?)</span></p>
 <ul>
+<li>Pascal Scripting: The already-existing <tt>StrToFloat</tt> and <tt>FloatToStr</tt> functions are now documented.</li>
 <li>Added official Scottish Gaelic and Turskish translations.</li>
 </ul>