<?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: Evaluating an algebraic expression introduced as strings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Evaluating-an-algebraic-expression-introduced-as-strings/m-p/687729#M87332</link>
    <description>&lt;P&gt;Eval(Parse()) is what you would want to use in case like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(Parse("3*3600 + 40*60 + 15 ")); // 13215&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 16 Oct 2023 16:10:41 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-10-16T16:10:41Z</dc:date>
    <item>
      <title>Evaluating an algebraic expression introduced as strings</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-an-algebraic-expression-introduced-as-strings/m-p/687716#M87331</link>
      <description>&lt;P&gt;I have a character column that has the duration of different processes in the following format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3h 40min 15s&lt;/P&gt;&lt;P&gt;3h 47min 19s&lt;/P&gt;&lt;P&gt;5min 6s&lt;/P&gt;&lt;P&gt;29min&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed this to another character column with find and replace:&lt;/P&gt;&lt;P&gt;3*3600 + 40*60 + 15&lt;/P&gt;&lt;P&gt;3*3600 + 47*60 + 19&lt;BR /&gt;5*60 + 6&lt;BR /&gt;29 * 60&lt;BR /&gt;&lt;BR /&gt;How can I add a formula that evaluates each expression when the expression is a string?&lt;BR /&gt;This works:&lt;/P&gt;&lt;P&gt;Eval( Expr( 3*3600 + 40*60 + 15 ) )&lt;BR /&gt;&lt;BR /&gt;But the formula doesn't as the expression is in characters:&lt;BR /&gt;Eval( Expr( "3*3600 + 40*60 + 15 "))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 15:53:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-an-algebraic-expression-introduced-as-strings/m-p/687716#M87331</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2023-10-16T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluating an algebraic expression introduced as strings</title>
      <link>https://community.jmp.com/t5/Discussions/Evaluating-an-algebraic-expression-introduced-as-strings/m-p/687729#M87332</link>
      <description>&lt;P&gt;Eval(Parse()) is what you would want to use in case like this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Eval(Parse("3*3600 + 40*60 + 15 ")); // 13215&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2023 16:10:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Evaluating-an-algebraic-expression-introduced-as-strings/m-p/687729#M87332</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-16T16:10:41Z</dc:date>
    </item>
  </channel>
</rss>

