<?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: Why can't I add two long fields into a float? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42682#M2368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian&lt;/P&gt;&lt;P&gt;So I was just using the Field Calculator  - set to VB Number calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its odd.&lt;/P&gt;&lt;P&gt;Lynn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynn Songer, Ph.D.&lt;/P&gt;&lt;P&gt;Geography and GIS Instructor&lt;/P&gt;&lt;P&gt;Social Science Department&lt;/P&gt;&lt;P&gt;Lane Community College&lt;/P&gt;&lt;P&gt;4000 East 30th Ave&lt;/P&gt;&lt;P&gt;Eugene, Oregon 97405&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office Phone: (541) 463-5493&lt;/P&gt;&lt;P&gt;Fax: (541) 463-4160&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Adrian Welsh &amp;lt;geonet@esri.com&amp;gt; 11/15/18 12:23 PM &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;               GeoNet           Re: Why can't I add two long fields into a float?   reply from Adrian Welsh in Managing Data - View the full discussion&lt;/P&gt;&lt;P&gt;   Lynn,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can you show what field calculations you are using (and what language)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     Reply to this message by replying to this email, or go to the message on GeoNet             Start a new discussion in Managing Data by email or at GeoNet             Following Re: Why can't I add two long fields into a float? in these streams:      Inbox                                                              This email was sent by GeoNet because you are a registered user.&lt;/P&gt;&lt;P&gt;                         You may unsubscribe instantly from GeoNet, or adjust email frequency in your email preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2018 21:05:22 GMT</pubDate>
    <dc:creator>LynnSonger</dc:creator>
    <dc:date>2018-11-15T21:05:22Z</dc:date>
    <item>
      <title>Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42679#M2365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp; two long integer fields in a shapefile&amp;nbsp; A and B.&amp;nbsp; I created a new long integer field C and a float field D.&amp;nbsp; When I add A and B using the field calculator into Field C and Field D my results are not always the same.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I performed the addition of A and B into a field set to Double field and the results were correct.&amp;nbsp; Just wondering why?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 20:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42679#M2365</guid>
      <dc:creator>LynnSonger</dc:creator>
      <dc:date>2018-11-15T20:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42680#M2366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I exported the file into a gdb and recalculated the float field - It would correctly. So it seems to be a shapefile problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 20:21:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42680#M2366</guid>
      <dc:creator>LynnSonger</dc:creator>
      <dc:date>2018-11-15T20:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42681#M2367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show what field calculations you are using (and what language)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 20:22:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42681#M2367</guid>
      <dc:creator>AdrianWelsh</dc:creator>
      <dc:date>2018-11-15T20:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42682#M2368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian&lt;/P&gt;&lt;P&gt;So I was just using the Field Calculator  - set to VB Number calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its odd.&lt;/P&gt;&lt;P&gt;Lynn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynn Songer, Ph.D.&lt;/P&gt;&lt;P&gt;Geography and GIS Instructor&lt;/P&gt;&lt;P&gt;Social Science Department&lt;/P&gt;&lt;P&gt;Lane Community College&lt;/P&gt;&lt;P&gt;4000 East 30th Ave&lt;/P&gt;&lt;P&gt;Eugene, Oregon 97405&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office Phone: (541) 463-5493&lt;/P&gt;&lt;P&gt;Fax: (541) 463-4160&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Adrian Welsh &amp;lt;geonet@esri.com&amp;gt; 11/15/18 12:23 PM &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;               GeoNet           Re: Why can't I add two long fields into a float?   reply from Adrian Welsh in Managing Data - View the full discussion&lt;/P&gt;&lt;P&gt;   Lynn,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Can you show what field calculations you are using (and what language)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     Reply to this message by replying to this email, or go to the message on GeoNet             Start a new discussion in Managing Data by email or at GeoNet             Following Re: Why can't I add two long fields into a float? in these streams:      Inbox                                                              This email was sent by GeoNet because you are a registered user.&lt;/P&gt;&lt;P&gt;                         You may unsubscribe instantly from GeoNet, or adjust email frequency in your email preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 21:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42682#M2368</guid>
      <dc:creator>LynnSonger</dc:creator>
      <dc:date>2018-11-15T21:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42683#M2369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Double or long.&lt;/P&gt;&lt;P&gt;Did you try just deleting the field, adding a new one (Double or Long) and trying the calculation?&lt;/P&gt;&lt;P&gt;Also, switch to the python parser to prepare yourself now for the future&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 22:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42683#M2369</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-11-15T22:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42684#M2370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you provide a few numerical examples to your results? What are the values in fields A, B, C, and D?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see this in all datasets?&lt;/P&gt;&lt;P&gt;What software are you using?&lt;/P&gt;&lt;P&gt;If you try a new ArcMap map document or ArcGIS Pro project (assuming you're using these), do you see different behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Rachel&lt;/P&gt;&lt;P&gt;Esri Support Services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 23:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42684#M2370</guid>
      <dc:creator>rachelg_esri</dc:creator>
      <dc:date>2018-11-15T23:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42685#M2371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel &lt;/P&gt;&lt;P&gt;Hummm I uploaded the screen shots in the original request.  I am pretty sure now it is a shape file issue - I exported the file to a gdb and the Field calculator reworked it fine. .   Just wondered why -Students were asking and I was clueless.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is good to show them that confirming calculations is important. &lt;/P&gt;&lt;P&gt;Lynn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lynn Songer, Ph.D.&lt;/P&gt;&lt;P&gt;Geography and GIS Instructor&lt;/P&gt;&lt;P&gt;Social Science Department&lt;/P&gt;&lt;P&gt;Lane Community College&lt;/P&gt;&lt;P&gt;4000 East 30th Ave&lt;/P&gt;&lt;P&gt;Eugene, Oregon 97405&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Office Phone: (541) 463-5493&lt;/P&gt;&lt;P&gt;Fax: (541) 463-4160&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Rachel Guttmacher &amp;lt;geonet@esri.com&amp;gt; 11/15/18 3:04 PM &amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;               GeoNet           Re: Why can't I add two long fields into a float?   reply from Rachel Guttmacher in Managing Data - View the full discussion&lt;/P&gt;&lt;P&gt;   Hello Lynn,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Could you provide a few numerical examples to your results? What are the values in fields A, B, C, and D?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Do you see this in all datasets?&lt;/P&gt;&lt;P&gt;What software are you using?&lt;/P&gt;&lt;P&gt;If you try a new ArcMap map document or ArcGIS Pro project (assuming you're using these), do you see different behavior?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;-- Rachel&lt;/P&gt;&lt;P&gt;Esri Support Services&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     Reply to this message by replying to this email, or go to the message on GeoNet             Start a new discussion in Managing Data by email or at GeoNet             Following Re: Why can't I add two long fields into a float? in these streams:      Inbox                                                              This email was sent by GeoNet because you are a registered user.&lt;/P&gt;&lt;P&gt;                         You may unsubscribe instantly from GeoNet, or adjust email frequency in your email preferences&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2018 23:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42685#M2371</guid>
      <dc:creator>LynnSonger</dc:creator>
      <dc:date>2018-11-15T23:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I add two long fields into a float?</title>
      <link>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42686#M2372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lynn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for that clarification - I missed the screenshot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to reproduce the issue in ArcMap 10.6.1 on my end, but after a bit of digging, I realized this is expected behavior. Here's why: Float fields can only store a precision of up to 6 values. If the numbers you are adding up (or the output of the addition) is longer than 6 values, the number will be rounded. For example, if I try to enter the following number: 123456789 into a float field and then save my edits, the number becomes 123457000. This is the way Float fields work in many different softwares and is simply the nature of the field type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you bring your data into a geodatabase, geodatabases ignore precision and scale values that other data types have limits for, so you may see a difference in behavior between, for example, shapefiles and file geodatabases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, unless you're trying to save storage space, I would recommend you use Double fields, as they allow the most precision and you can store the widest range of numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, see:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/arcgis-field-data-types.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/arcgis-field-data-types.htm"&gt;ArcGIS field data types—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rachel&lt;/P&gt;&lt;P&gt;Esri Support Services&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2018 15:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/why-can-t-i-add-two-long-fields-into-a-float/m-p/42686#M2372</guid>
      <dc:creator>rachelg_esri</dc:creator>
      <dc:date>2018-11-16T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

