<?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: String to Numeric (11 characters) Issue in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190617#M57045</link>
    <description>&lt;P&gt;Ah! census geographic identifiers, not globe models, right?&lt;/P&gt;&lt;P&gt;I set up a table with the following fields and datatypes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvanThoms_0-1657230667923.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45477i101C145CDEA36AC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EvanThoms_0-1657230667923.png" alt="EvanThoms_0-1657230667923.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then wrote an 11 character census tract to geoid_string,&amp;nbsp;&lt;SPAN&gt;48201223100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Running the field calculation&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;int(!geoid_string!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;on each of the fields resulted in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvanThoms_1-1657230871249.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45479iE84359E6B5DBC3D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EvanThoms_1-1657230871249.png" alt="EvanThoms_1-1657230871249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am guessing you are trying to calculate on a long integer field? Try setting it to double and using the calculation above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read more about the limits on datatypes here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/help/data/geodatabases/overview/arcgis-field-data-types.htm" target="_blank"&gt;ArcGIS field data types—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 22:02:49 GMT</pubDate>
    <dc:creator>EvanThoms</dc:creator>
    <dc:date>2022-07-07T22:02:49Z</dc:date>
    <item>
      <title>String to Numeric (11 characters) Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190602#M57042</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using ArcGIS Pro Version 2.6 and am trying to convert geoid (11 figures) from a string to numeric through the attribute table and calculate field. I have tried the following methods and it creates a new variable with only 10 figures and null values (when there are 11 figures).&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;To denote that length is 11&lt;/LI&gt;&lt;LI&gt;Calculate field where !variable!&lt;/LI&gt;&lt;LI&gt;.zfill(11)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All of these have left me with many null values and only 10 digits in my number.&lt;/P&gt;&lt;P&gt;Is there any way I can go about doing this?&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 21:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190602#M57042</guid>
      <dc:creator>miminuton</dc:creator>
      <dc:date>2022-07-07T21:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: String to Numeric (11 characters) Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190613#M57044</link>
      <description>&lt;P&gt;Are you converting a text field to a long integer field? The maximum value of a long field is (2^31)-1, or&amp;nbsp;2,147,483,647, which is 9 consistent decimal digits, or 10 in some cases. To store numeric versions of larger numbers, use a "double" field, that gives you 15 consistent decimal digits with no precision loss. Here's a quick field calculator example (the long field is null because the value causes the calculation to fail due to size restrictions):&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-07-07 145339.png" style="width: 606px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45478iC9F802ED68256699/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-07-07 145339.png" alt="Screenshot 2022-07-07 145339.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 21:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190613#M57044</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2022-07-07T21:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: String to Numeric (11 characters) Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190617#M57045</link>
      <description>&lt;P&gt;Ah! census geographic identifiers, not globe models, right?&lt;/P&gt;&lt;P&gt;I set up a table with the following fields and datatypes&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvanThoms_0-1657230667923.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45477i101C145CDEA36AC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EvanThoms_0-1657230667923.png" alt="EvanThoms_0-1657230667923.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and then wrote an 11 character census tract to geoid_string,&amp;nbsp;&lt;SPAN&gt;48201223100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Running the field calculation&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;int(!geoid_string!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;on each of the fields resulted in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvanThoms_1-1657230871249.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45479iE84359E6B5DBC3D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EvanThoms_1-1657230871249.png" alt="EvanThoms_1-1657230871249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am guessing you are trying to calculate on a long integer field? Try setting it to double and using the calculation above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read more about the limits on datatypes here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/help/data/geodatabases/overview/arcgis-field-data-types.htm" target="_blank"&gt;ArcGIS field data types—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 22:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190617#M57045</guid>
      <dc:creator>EvanThoms</dc:creator>
      <dc:date>2022-07-07T22:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: String to Numeric (11 characters) Issue</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190671#M57050</link>
      <description>&lt;P&gt;Could you share screenshot of how the different string values look like, and explain what portion of string you would like to extract?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 23:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/string-to-numeric-11-characters-issue/m-p/1190671#M57050</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2022-07-07T23:08:22Z</dc:date>
    </item>
  </channel>
</rss>

