<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: String to Number in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64271#M32181</link>
    <description>This came straight from the Archicad/GDL Help. STR requires a numerical expression and changes it to a string. I'm looking for a Function that turns a String into a Number.&lt;BR /&gt;
&lt;BR /&gt;
STR    (numeric_expression, length, fractions)&lt;BR /&gt;
STR{2} format_string, numeric_expression [,&lt;BR /&gt;
       exta_accuracy_string])&lt;BR /&gt;
&lt;BR /&gt;
The first form of the function creates a string from the current value of the numeric expression. The minimum number for numerical characters in the string is length, while fractions represents the numbers following the floating point. If the converted value has more than length characters, it is expanded as required. If it has fewer characters, it is padded on the left (length&amp;gt;0) or on the right (length&amp;lt;0).&lt;BR /&gt;
Example: &lt;BR /&gt;
&lt;BR /&gt;
A=4.5&lt;BR /&gt;
B=2.345&lt;BR /&gt;
TEXT2    0, 2, STR(A, 8, 2)        ! 4.50&lt;BR /&gt;
TEXT2    0, 1, STR(B, 8, 2)        ! 2.34&lt;BR /&gt;
TEXT2    0, 0, STR(A*B, 8, 2)      ! 10.55</description>
    <pubDate>Wed, 10 Jan 2007 20:22:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-01-10T20:22:49Z</dc:date>
    <item>
      <title>String to Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64269#M32179</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;If there a function for GDL that turns a string into a number or extracts part of a string to be a number?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jan 2007 19:49:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64269#M32179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-10T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: String to Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64270#M32180</link>
      <description>Check out STR() in the GDL Reference Manual. It has several uses and variables.</description>
      <pubDate>Wed, 10 Jan 2007 20:00:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64270#M32180</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-01-10T20:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: String to Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64271#M32181</link>
      <description>This came straight from the Archicad/GDL Help. STR requires a numerical expression and changes it to a string. I'm looking for a Function that turns a String into a Number.&lt;BR /&gt;
&lt;BR /&gt;
STR    (numeric_expression, length, fractions)&lt;BR /&gt;
STR{2} format_string, numeric_expression [,&lt;BR /&gt;
       exta_accuracy_string])&lt;BR /&gt;
&lt;BR /&gt;
The first form of the function creates a string from the current value of the numeric expression. The minimum number for numerical characters in the string is length, while fractions represents the numbers following the floating point. If the converted value has more than length characters, it is expanded as required. If it has fewer characters, it is padded on the left (length&amp;gt;0) or on the right (length&amp;lt;0).&lt;BR /&gt;
Example: &lt;BR /&gt;
&lt;BR /&gt;
A=4.5&lt;BR /&gt;
B=2.345&lt;BR /&gt;
TEXT2    0, 2, STR(A, 8, 2)        ! 4.50&lt;BR /&gt;
TEXT2    0, 1, STR(B, 8, 2)        ! 2.34&lt;BR /&gt;
TEXT2    0, 0, STR(A*B, 8, 2)      ! 10.55</description>
      <pubDate>Wed, 10 Jan 2007 20:22:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64271#M32181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-10T20:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: String to Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64272#M32182</link>
      <description>oh, sorry, that's SPLIT()</description>
      <pubDate>Wed, 10 Jan 2007 20:28:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64272#M32182</guid>
      <dc:creator>TomWaltz</dc:creator>
      <dc:date>2007-01-10T20:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: String to Number</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64273#M32183</link>
      <description>That worked. Thanks.</description>
      <pubDate>Wed, 10 Jan 2007 20:49:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/String-to-Number/m-p/64273#M32183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-01-10T20:49:19Z</dc:date>
    </item>
  </channel>
</rss>

