<?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: ArcGIS online calculate in new field returns rounded whole numbers only, no decimals in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004927#M37527</link>
    <description>&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;That worked perfectly, thank you for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 02:50:45 GMT</pubDate>
    <dc:creator>JulietK</dc:creator>
    <dc:date>2020-11-26T02:50:45Z</dc:date>
    <item>
      <title>ArcGIS online calculate in new field returns rounded whole numbers only, no decimals</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004900#M37522</link>
      <description>&lt;P&gt;Hi in a hosted table created from a uploaded csv, I have a field which contains minutes data, such as&lt;/P&gt;&lt;TABLE border="0" width="64" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64" height="20"&gt;totalminutes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;48&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Which was for some reason, uploaded as fieldtype string, even though I specified the fieldtype as integer when I first uploaded the csv (same also occurred when trying to specify dates as fieldtype date).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make a new field in ArcGIS online, which would contain hours data calculated from totalminutes. I've tried creating a new field with fieldtype integer and using SQL totalminutes/60. However, this only returns whole numbers like 0, 1 and 2s, which seem to be rounded numbers, rather than 0.5, 0.75 etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I create a new string field and use the above formula, it returns correct results (0.5, 0.75 etc). I need the hours field to be a integer field though, since I need to use SUM on this field in Dashboard. Any ideas on how I can achieve this in ArcGIS onlline?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 00:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004900#M37522</guid>
      <dc:creator>JulietK</dc:creator>
      <dc:date>2020-11-26T00:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS online calculate in new field returns rounded whole numbers only, no decimals</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004910#M37524</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/96317"&gt;@JulietK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried using the Double instead of integer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;integers are numbers without decimals. double is a floating-point numbers with double precisions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;______________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;If the answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004910#M37524</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-11-26T01:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS online calculate in new field returns rounded whole numbers only, no decimals</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004911#M37525</link>
      <description>&lt;P&gt;Hi Manish, thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately creating a new field with fieldtype double and using the same formula still returns rounded whole numbers only. Very weird!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004911#M37525</guid>
      <dc:creator>JulietK</dc:creator>
      <dc:date>2020-11-26T01:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS online calculate in new field returns rounded whole numbers only, no decimals</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004915#M37526</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/96317"&gt;@JulietK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the totalminutes is string you will need to cast it to correct data type and then use the below to calculate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAST(totalminutes AS FLOAT)/60&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="ManishPatel_0-1606355632885.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1019i72E51FCC5585A914/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ManishPatel_0-1606355632885.png" alt="ManishPatel_0-1606355632885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;______________________________________________________________________________________________&lt;/P&gt;&lt;P&gt;If the answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 01:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004915#M37526</guid>
      <dc:creator>ManishPatel</dc:creator>
      <dc:date>2020-11-26T01:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS online calculate in new field returns rounded whole numbers only, no decimals</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004927#M37527</link>
      <description>&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;That worked perfectly, thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 02:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-online-calculate-in-new-field-returns/m-p/1004927#M37527</guid>
      <dc:creator>JulietK</dc:creator>
      <dc:date>2020-11-26T02:50:45Z</dc:date>
    </item>
  </channel>
</rss>

