<?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: No conversion from string to numerical? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161025#M25709</link>
    <description>I would like to add, that if you call &lt;BR /&gt;
SPLIT( "3.45", "%n", X)&lt;BR /&gt;
it returns X=3.45!&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Leo</description>
    <pubDate>Sat, 24 Jan 2009 21:06:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-01-24T21:06:29Z</dc:date>
    <item>
      <title>No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161023#M25707</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Hi guys,&lt;BR /&gt;
Is it possible to convert a string variable to a numerical value in GDL?&lt;BR /&gt;
I know it is possible to convert a numerical to a string, but what about the other way? I cannot seem to find any such command.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 24 Jan 2009 13:58:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161023#M25707</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-01-24T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161024#M25708</link>
      <description>&lt;BLOCKQUOTE&gt;laszlonagy wrote:&lt;BR /&gt;Hi guys,&lt;BR /&gt;
Is it possible to convert a string variable to a numerical value in GDL?&lt;BR /&gt;
I know it is possible to convert a numerical to a string, but what about the other way? I cannot seem to find any such command.&lt;/BLOCKQUOTE&gt;

Hi Laszlo,&lt;BR /&gt;
&lt;BR /&gt;
SPLIT function should do the trick.&lt;BR /&gt;
&lt;BR /&gt;
string = "3 pieces 2x5 beam"&lt;BR /&gt;
n = split (string, "%n pieces %nx%n %s", num, string1, size1, string2, size2, name)&lt;BR /&gt;
&lt;BR /&gt;
print num, string1, size1, string2, size2, name&lt;BR /&gt;
&lt;BR /&gt;
print vartype(num), vartype(string1), vartype(size1), vartype(string2), vartype(size2), vartype(name)&lt;BR /&gt;
!!! 1 numeric, 2 string&lt;BR /&gt;
&lt;BR /&gt;
Cheers, &lt;BR /&gt;
Olivier</description>
      <pubDate>Sat, 24 Jan 2009 16:23:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161024#M25708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-24T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161025#M25709</link>
      <description>I would like to add, that if you call &lt;BR /&gt;
SPLIT( "3.45", "%n", X)&lt;BR /&gt;
it returns X=3.45!&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Leo</description>
      <pubDate>Sat, 24 Jan 2009 21:06:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161025#M25709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-24T21:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161026#M25710</link>
      <description>Thanks guys,&lt;BR /&gt;
I knew there must have been something.&lt;BR /&gt;
I have not used this command for a very long time.</description>
      <pubDate>Sat, 24 Jan 2009 22:37:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161026#M25710</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-01-24T22:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161027#M25711</link>
      <description>You are welcome, new horrible moderator  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; ! &lt;BR /&gt;
&lt;BR /&gt;
What a pity I couldn't recommend you a function for converting strings (for example) to your daytime and stamina &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Good luck,&lt;BR /&gt;
Leo</description>
      <pubDate>Sun, 25 Jan 2009 00:53:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161027#M25711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-25T00:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161028#M25712</link>
      <description>&lt;BLOCKQUOTE&gt;Leo wrote:&lt;BR /&gt;You are welcome, new horrible moderator  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; ! &lt;/BLOCKQUOTE&gt;

Give the guy a chance ... he is nowhere near horrible! &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;</description>
      <pubDate>Sun, 25 Jan 2009 06:09:01 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161028#M25712</guid>
      <dc:creator>Djordje</dc:creator>
      <dc:date>2009-01-25T06:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161029#M25713</link>
      <description>&lt;BLOCKQUOTE&gt;Djordje wrote:&lt;BR /&gt;Give the guy a chance ... he is nowhere near horrible! &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;/BLOCKQUOTE&gt;

Yes Sir, THE MOST HORRIBLE  MODERATOR OF THE FORUM WHO WE'VE EVER SEEN AND FOREVER  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt; ! We'll give him a chance  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;</description>
      <pubDate>Sun, 25 Jan 2009 10:22:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161029#M25713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-25T10:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: No conversion from string to numerical?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161030#M25714</link>
      <description>Thanks.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_lol.gif" style="display : inline;" /&gt;</description>
      <pubDate>Sun, 25 Jan 2009 13:18:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/No-conversion-from-string-to-numerical/m-p/161030#M25714</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-01-25T13:18:15Z</dc:date>
    </item>
  </channel>
</rss>

