<?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 Python expression in Modelbuilder in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809806#M1176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum two fields which are in different layers...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Calculate field and running the expression&amp;nbsp;sum(%Summe_Trassen_eigen%,%Summe_Trassen_angemietet%)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get incorrect value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;sum(%Summe_Trassen_eigen%,%Summe_Trassen_angemietet%)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example is: "sum([582,871017020542,2826,20859771853])&lt;/P&gt;&lt;P&gt;the result is:&amp;nbsp;891876795803 - whats wrong, it has to be 3409,0796...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you advice whats wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2019 07:34:12 GMT</pubDate>
    <dc:creator>TereziaBecker</dc:creator>
    <dc:date>2019-10-09T07:34:12Z</dc:date>
    <item>
      <title>Python expression in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809806#M1176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to sum two fields which are in different layers...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Calculate field and running the expression&amp;nbsp;sum(%Summe_Trassen_eigen%,%Summe_Trassen_angemietet%)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get incorrect value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;sum(%Summe_Trassen_eigen%,%Summe_Trassen_angemietet%)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example is: "sum([582,871017020542,2826,20859771853])&lt;/P&gt;&lt;P&gt;the result is:&amp;nbsp;891876795803 - whats wrong, it has to be 3409,0796...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you advice whats wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 07:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809806#M1176</guid>
      <dc:creator>TereziaBecker</dc:creator>
      <dc:date>2019-10-09T07:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python expression in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809807#M1177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You appear to have your decimal delimiter (radix) set to a comma ",".&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;582 +&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;871017020542 +&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;2826 +&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;20859771853&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;= 891876795803&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;So change it back to ".", a decimal point.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:00:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809807#M1177</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2019-10-09T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python expression in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809808#M1178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @&lt;A _jive_internal="true" data-userid="5327" data-username="GSCUser85" href="https://community.esri.com/people/GSCUser85" style="color: #3778c7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Neil Ayres&lt;/A&gt;&lt;SPAN style="background-color: #ffffff; color: #a9a9a9; "&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;thanks for answer.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;The problem is that I get this values from summstatistic (values are "double"). So it gives me automatic "comma" values. Is there a way how to change double to integer or how to change it to a decimal point?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; "&gt;"Summstatistic" &amp;gt; (the fields are double) &amp;gt; "Get field value" &amp;gt; (double, with comma) - *I do not need the values behind the comma&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #a9a9a9; "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 09:54:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809808#M1178</guid>
      <dc:creator>TereziaBecker</dc:creator>
      <dc:date>2019-10-09T09:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python expression in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809809#M1179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Changing the decimal symbol is buried quite deeply in the Time &amp;amp; Date setting of Windows.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/461564_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 09:07:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809809#M1179</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2019-10-10T09:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Python expression in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809810#M1180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, those dialogs are under "Region"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 09:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809810#M1180</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2019-10-10T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python expression in Modelbuilder</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809811#M1181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2019 09:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/python-expression-in-modelbuilder/m-p/809811#M1181</guid>
      <dc:creator>TereziaBecker</dc:creator>
      <dc:date>2019-10-10T09:52:39Z</dc:date>
    </item>
  </channel>
</rss>

