<?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: Need Help with Python Expression to Calculate Field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038174#M60465</link>
    <description>&lt;P&gt;Please post the entire code block.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633" target="_blank"&gt;Code formatting ... the Community Version - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 17:40:43 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2021-03-18T17:40:43Z</dc:date>
    <item>
      <title>Need Help with Python Expression to Calculate Field</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038170#M60463</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate a field using another field. The code expression is valid and it executes the code but it does not provide the values i'm looking for. Instead, it shows 0's. But I want it to show values of .2 and .33, respectively for the Assigned Percent Loss field that I am trying to calculate.. Any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KyleSmiley_nrcs_0-1616088760838.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/8802i21BFCC8DACC534E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KyleSmiley_nrcs_0-1616088760838.png" alt="KyleSmiley_nrcs_0-1616088760838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038170#M60463</guid>
      <dc:creator>KyleSmiley_nrcs</dc:creator>
      <dc:date>2021-03-18T17:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Python Expression to Calculate Field</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038171#M60464</link>
      <description>&lt;P&gt;What is the field's data type?&amp;nbsp; It is probably rounding and it should be set to float and the format set to show the correct number format.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 18:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038171#M60464</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-18T18:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Python Expression to Calculate Field</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038174#M60465</link>
      <description>&lt;P&gt;Please post the entire code block.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633" target="_blank"&gt;Code formatting ... the Community Version - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 17:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038174#M60465</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-03-18T17:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Python Expression to Calculate Field</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038270#M60467</link>
      <description>&lt;P&gt;Looks like "Assign_Per_Loss" is LONG or SHORT datatype. It should be FLOAT or DOUBLE.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 20:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038270#M60467</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2021-03-18T20:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with Python Expression to Calculate Field</title>
      <link>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038296#M60468</link>
      <description>&lt;P&gt;Code worked and provided the correct output after changing it from long to float. Thanks everybody!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 20:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/need-help-with-python-expression-to-calculate/m-p/1038296#M60468</guid>
      <dc:creator>KyleSmiley_nrcs</dc:creator>
      <dc:date>2021-03-18T20:47:17Z</dc:date>
    </item>
  </channel>
</rss>

