<?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 How to always round calculated integer UP to the next whole integer in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818292#M15176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a decimal field that I have calculated from the input that the field worker gave in another field. It is basically a calculation where the area entered by the field worker is divided by 5. The result of this calculation needs to be rounded UP to the nearest integer. So if the answer is 5.1, then the output must&amp;nbsp;round up to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I format this output to always round up to the next integer, no matter what the decimal value says? Obviously if the decimal value is 0 then the number won't round up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Nov 2019 13:47:29 GMT</pubDate>
    <dc:creator>Paulvan_Heerden1</dc:creator>
    <dc:date>2019-11-04T13:47:29Z</dc:date>
    <item>
      <title>How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818292#M15176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a decimal field that I have calculated from the input that the field worker gave in another field. It is basically a calculation where the area entered by the field worker is divided by 5. The result of this calculation needs to be rounded UP to the nearest integer. So if the answer is 5.1, then the output must&amp;nbsp;round up to 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I format this output to always round up to the next integer, no matter what the decimal value says? Obviously if the decimal value is 0 then the number won't round up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 13:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818292#M15176</guid>
      <dc:creator>Paulvan_Heerden1</dc:creator>
      <dc:date>2019-11-04T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818293#M15177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could make it integer so they cannot type in a .?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or a calculation of&lt;/P&gt;&lt;P&gt;if(${field}=0,0,int(${field})+1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 14:59:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818293#M15177</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-11-04T14:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818294#M15178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add 0.5 before you cast to int.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 15:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818294#M15178</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2019-11-04T15:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818295#M15179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why?&amp;nbsp; That would mess up a value of say 5.9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 20:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818295#M15179</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-11-04T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818296#M15180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug, thanks for the reply. With the calculation that you gave me, I am not totally sure how I should use it in my case. I already have a calculation that I am doing in that field. You will see what I mean in the attached image. Can I use both expressions together? You will see that I am already dividing the input from a previous field to give me my answer. It is this answer that I need to have rounded up all the time&lt;IMG __jive_id="472451" alt="What my field looks like in the spreadsheet" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/472451_Capture.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I managed to&amp;nbsp;get the formula you gave me working for my application, but the problem is that it add 1 to the answer even if it is a whole number. This means that if someone inputs 25 (which should give a result of 5), now gives you a result of 6 because 1 was added on to 25 to give you 26. This divided by 5 gives you 5.2, which then rounds up to 6 using the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;&lt;STRONG&gt;if((${effa} div 5)=0,0,int((${effa} div 5))+1)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; background: white; font-size: 11.5pt;"&gt;I have also been playing with a mod and round expression, and I seem to have gotten it to work for me:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((${effa} div 5)&amp;nbsp; mod 1 &amp;lt; 0.5, round((${effa} div 5) + 0.5, 0), round((${effa} div 5), 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 05:44:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818296#M15180</guid>
      <dc:creator>Paulvan_Heerden1</dc:creator>
      <dc:date>2019-11-05T05:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818297#M15181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&amp;nbsp; This seems to be working for me. It is basically the same thing Doug posted plus a little twist to handle situations where people enter an integer value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH style="width: 16%;"&gt;type&lt;/TH&gt;&lt;TH style="width: 13%;"&gt;name&lt;/TH&gt;&lt;TH style="width: 10%;"&gt;label&lt;/TH&gt;&lt;TH style="width: 32.5013%;"&gt;calculation&lt;/TH&gt;&lt;TH style="width: 18.4987%;"&gt;bind::type&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 16%;"&gt;decimal&lt;/TD&gt;&lt;TD style="width: 13%;"&gt;effa&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;Input&lt;/TD&gt;&lt;TD style="width: 32.5013%;"&gt;&lt;/TD&gt;&lt;TD style="width: 18.4987%;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 16%;"&gt;calculate&lt;/TD&gt;&lt;TD style="width: 13%;"&gt;effa5&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;&lt;/TD&gt;&lt;TD style="width: 32.5013%;"&gt;${effa} div 5&lt;/TD&gt;&lt;TD style="width: 18.4987%;"&gt;decimal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="width: 16%;"&gt;integer&lt;/TD&gt;&lt;TD style="width: 13%;"&gt;output&lt;/TD&gt;&lt;TD style="width: 10%;"&gt;Output&lt;/TD&gt;&lt;TD style="width: 32.5013%;"&gt;if(int(${effa5})=${effa5},${effa5},int(${effa5})+1)&lt;/TD&gt;&lt;TD style="width: 18.4987%;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XLSForm above will add a field into your feature layer called effa5. If you do not want that, simply set the bind::esri:fieldType column to null for effa5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 12:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/818297#M15181</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2019-11-05T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/1134060#M39782</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/213013"&gt;@Paulvan_Heerden1&lt;/a&gt;&amp;nbsp;it would be nice if survey123 had a RoundUp function. I have posted it as an idea , please kudo it up if you think it would be helpful&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-ideas/add-roundup-amp-rounddown-as-mathematical/idi-p/1133982" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-ideas/add-roundup-amp-rounddown-as-mathematical/idi-p/1133982&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 20:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/1134060#M39782</guid>
      <dc:creator>PrachiPatel</dc:creator>
      <dc:date>2022-01-14T20:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to always round calculated integer UP to the next whole integer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/1690396#M65637</link>
      <description>&lt;P&gt;For info - this looks like it has improved since 2022&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if(round(${_Priority2Total}, 0) &amp;lt; ${_Priority2Total}, round(${_Priority2Total}, 0) + 1, round(${_Priority2Total}, 0))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;all described here&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-use-calculations-in-survey123-to-force-rounding--000027109" target="_blank" rel="noopener"&gt;How To: Use Calculations in Survey123 to Force Rounding up Decimal Values to Convert to an&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are curious this is for a UK Asbestos Survey&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 09:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-always-round-calculated-integer-up-to-the/m-p/1690396#M65637</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2026-03-13T09:27:56Z</dc:date>
    </item>
  </channel>
</rss>

