<?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 Convert numbers in a text field to an integer field in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821273#M33686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text field with temperatures in it (mostly numbers, but some with "unknown temperature") that I want to calculate to an integer field so I can create symbols using a quantitative classification.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS I could &amp;nbsp;calculate using [TempF].asNumber &amp;nbsp;but I can't find a similar function in ArcPro.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Sep 2016 17:45:39 GMT</pubDate>
    <dc:creator>MargoBerendsen</dc:creator>
    <dc:date>2016-09-16T17:45:39Z</dc:date>
    <item>
      <title>Convert numbers in a text field to an integer field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821273#M33686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text field with temperatures in it (mostly numbers, but some with "unknown temperature") that I want to calculate to an integer field so I can create symbols using a quantitative classification.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS I could &amp;nbsp;calculate using [TempF].asNumber &amp;nbsp;but I can't find a similar function in ArcPro.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 17:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821273#M33686</guid>
      <dc:creator>MargoBerendsen</dc:creator>
      <dc:date>2016-09-16T17:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers in a text field to an integer field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821274#M33687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you text field only contains integers, as text, or a text value, you can use !yourfield!.isdigit() using a python parser. &amp;nbsp;If your field contains floating point values as text or a text value, then there is more work to do.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; a
&lt;SPAN class="string token"&gt;'1'&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; b
&lt;SPAN class="string token"&gt;'1.1'&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; a&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isdigit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; b&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isdigit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; b&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;isalnum&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so before giving a code block to cover the cases for floating point values, values in scientific notation, NaNs and complex, see if you have just integers (as text) or text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821274#M33687</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers in a text field to an integer field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821275#M33688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see how this tests to see if the text value is integer, but how do I change it to integer? Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Sep 2016 18:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821275#M33688</guid>
      <dc:creator>MargoBerendsen</dc:creator>
      <dc:date>2016-09-16T18:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers in a text field to an integer field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821276#M33689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the field calculator, python parser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int(!Your_Fieldname_here!) &amp;nbsp;# note the ! before and after the field name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'1234'&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;a&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="number token"&gt;1234&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821276#M33689</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T09:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert numbers in a text field to an integer field</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821277#M33690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may wish to move this thread to &lt;A href="https://community.esri.com/community/gis/applications/arcgis-pro?sr=search&amp;amp;searchId=9ac689ca-14f7-45ae-b65f-6b01a5921f11&amp;amp;searchIndex=1"&gt;https://community.esri.com/community/gis/applications/arcgis-pro?sr=search&amp;amp;searchId=9ac689ca-14f7-45ae-b65f-6b01a5921f11&amp;amp;searchIndex=1&lt;/A&gt;‌ to get a wider audience, you have published in a group with limited membership&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2016 11:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/convert-numbers-in-a-text-field-to-an-integer/m-p/821277#M33690</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-09-17T11:11:33Z</dc:date>
    </item>
  </channel>
</rss>

