<?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: ROUND DECIMAL VALUE UP OR DOWN in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513804#M58271</link>
    <description>&lt;P&gt;By 'add a table', do you mean like an image to help the user, like the below example?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1722535417626.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111389i97E5E9A4348CE38C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1722535417626.png" alt="abureaux_0-1722535417626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If so, that is quite easy. Just add the image file to your media folder, and reference it like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1722535457767.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111390iEB212CB06D67073D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1722535457767.png" alt="abureaux_1-1722535457767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just be aware that the image is caps-sensitive. So be sure to copy-paste the full name (including file extension).&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 18:05:37 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-08-01T18:05:37Z</dc:date>
    <item>
      <title>ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513202#M58250</link>
      <description>&lt;P&gt;Good Afternoon&lt;/P&gt;&lt;P&gt;I have a decimal field that is created from calculating the total time. IE 7:00 AM to 7:45 AM = 0.75&lt;/P&gt;&lt;P&gt;What I am trying to do figure out is additional rounding.&lt;/P&gt;&lt;P&gt;If the field $regular_hours_1 = 0.18 I need to write a formula that calculates $regular_hours_round_1 = 0.25&lt;/P&gt;&lt;P&gt;Not sure the proper way to do this, either a rounding formula or an if/else statement.&lt;/P&gt;&lt;P&gt;Between 0.00 - 0.12 = Round to 0.00&lt;/P&gt;&lt;P&gt;Between 0.13 - 0.37 = Round to 0.25&lt;/P&gt;&lt;P&gt;Between 0.38 - 0.62 = Round to 0.50&lt;/P&gt;&lt;P&gt;Between 0.63 - 0.87 = Round to 0.75&lt;/P&gt;&lt;P&gt;Between 0.88 - 0.99 = Round to 1.00&lt;/P&gt;&lt;P&gt;I have gotten this far on doing the time calculations, its this part that I cannot figure out.&lt;/P&gt;&lt;P&gt;Appreciate it&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 20:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513202#M58250</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2024-07-31T20:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513238#M58251</link>
      <description>&lt;P&gt;For Arcade, use&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#when" target="_blank"&gt;When | Logical functions | ArcGIS Arcade | Esri Developer&lt;/A&gt;:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var regular_hours_1 = 0.18;

return when(
  regular_hours_1 &amp;lt; 0.13, 0.0,
  regular_hours_1 &amp;lt; 0.38, 0.25,
  regular_hours_1 &amp;lt; 0.63, 0.5,
  regular_hours_1 &amp;lt; 0.88, 0.75,
  1.0
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Jul 2024 20:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513238#M58251</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-07-31T20:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513258#M58252</link>
      <description>&lt;P&gt;Honestly, doesn't sound like you are rounding. It appears you just want to output quarter hours. In that case, using IF() statements should suffice.&lt;/P&gt;&lt;P&gt;E.g. Something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1722460483444.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111273i0178CE0D4B273825/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1722460483444.png" alt="abureaux_1-1722460483444.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if(${regular_hours_1}&amp;gt;=10,substr(${regular_hours_1},2,string-length(${regular_hours_1})),if(${regular_hours_1}&amp;lt;10,substr(${regular_hours_1},1,string-length(${regular_hours_1})),0))&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;if(${regular_hours_1_dec}&amp;gt;0 and ${regular_hours_1_dec}&amp;lt;=0.12,0,if(${regular_hours_1_dec}&amp;gt;0.12 and ${regular_hours_1_dec}&amp;lt;=0.37,0.25,if(${regular_hours_1_dec}&amp;gt;0.37 and ${regular_hours_1_dec}&amp;lt;=0.62,0.5,if(${regular_hours_1_dec}&amp;gt;0.62 and ${regular_hours_1_dec}&amp;lt;=0.87,0.75,if(${regular_hours_1_dec}&amp;gt;0.87 and ${regular_hours_1_dec}&amp;lt;=0.99,1,0)))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick test:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_2-1722460498497.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111274i38443BD73DB198A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_2-1722460498497.png" alt="abureaux_2-1722460498497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_3-1722460507149.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111275iBE410EFB4F296281/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_3-1722460507149.png" alt="abureaux_3-1722460507149.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_4-1722460518301.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111276i2A062836E55A72C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_4-1722460518301.png" alt="abureaux_4-1722460518301.png" /&gt;&lt;/span&gt;&lt;/P&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>Wed, 31 Jul 2024 21:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513258#M58252</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-07-31T21:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513299#M58253</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454586"&gt;@abureaux&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this should do the trick. This shortcut inside the form will assist our crews from having to do the math.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ModernElectric_0-1722463729230.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111283i229BC6BCB7925795/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ModernElectric_0-1722463729230.png" alt="ModernElectric_0-1722463729230.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 22:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513299#M58253</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2024-07-31T22:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513309#M58254</link>
      <description>&lt;P&gt;Glad this seems to be working for you.&lt;/P&gt;&lt;P&gt;Just wanted to toss this out there: If you are showing the calculations in text fields, you may wish to set those text fields to &lt;STRONG&gt;read only = yes&lt;/STRONG&gt; to avoid users making unintended edits or breaking calculations.&lt;/P&gt;&lt;P&gt;Also, on the off-chance that this applies to your business case, I should mention that in my quick workflow mock-up, I didn't account for scenarios where hours were in the triple digits. For example, 143.34 hours will not work properly with my posted formula. A quick tweak will fix that though. I mention this since you seem to be working with "OT Hours", which &lt;EM&gt;may&lt;/EM&gt; reach into the triple digits depending on your business case.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 22:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513309#M58254</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-07-31T22:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513314#M58255</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454586"&gt;@abureaux&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the information. I have been working on nothing but this updated form for the past few days, sending updates to my management team and receiving design feedback from them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overtime should rarely, if ever, reach the triple digits. However, I will make a note to address this issue.&lt;/P&gt;&lt;P&gt;Let me ask this (based on the design feedback from my management team):&lt;/P&gt;&lt;P&gt;The user selects the date and time in the form. The new request for the design is to have the rounding happen at the start time and end time and show up as a decimal. IE: Time called 7/31/2024&amp;nbsp;@ 1:13 PM = 13.25 and End Time 7/31/2024&amp;nbsp;@ 5:40 PM = 17.75&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an idea on how I can accomplish this, but wondering if you have a trick?&lt;/P&gt;&lt;P&gt;Goal is for the user to select and data/time and have everything calculated for them. Hope this makes sense what I am trying to get to.&lt;/P&gt;&lt;P&gt;Overtime Hours Worked auto-completed based on the entered start and end time rounded from the starting/ending times.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 22:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513314#M58255</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2024-07-31T22:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513603#M58260</link>
      <description>&lt;P&gt;No tricks as far as I am aware. Basically, you'd:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Extract the time from the dateTime questions.&lt;/LI&gt;&lt;LI&gt;Use the above process to convert the user-entered times into your quarter hours.&lt;/LI&gt;&lt;LI&gt;Use your two new quarter hour times and calculate the difference between them, giving you your hours worked.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 01 Aug 2024 13:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513603#M58260</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-01T13:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513794#M58269</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454586"&gt;@abureaux&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the advice. I believe I have figure out a good workflow for the form and to make it not too difficult for the user adding their time entry.&lt;/P&gt;&lt;P&gt;Side Question: I am using Survey123 Connect and building the form via Excel (XLS Form). Is it possible to add a table as a note to the form thru the XLS form?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 17:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513794#M58269</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2024-08-01T17:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513804#M58271</link>
      <description>&lt;P&gt;By 'add a table', do you mean like an image to help the user, like the below example?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_0-1722535417626.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111389i97E5E9A4348CE38C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_0-1722535417626.png" alt="abureaux_0-1722535417626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If so, that is quite easy. Just add the image file to your media folder, and reference it like so:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1722535457767.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/111390iEB212CB06D67073D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1722535457767.png" alt="abureaux_1-1722535457767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just be aware that the image is caps-sensitive. So be sure to copy-paste the full name (including file extension).&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 18:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513804#M58271</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-08-01T18:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: ROUND DECIMAL VALUE UP OR DOWN</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513819#M58273</link>
      <description>&lt;P&gt;Exactly&lt;/P&gt;&lt;P&gt;Yup, that is very easy.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 18:32:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/round-decimal-value-up-or-down/m-p/1513819#M58273</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2024-08-01T18:32:24Z</dc:date>
    </item>
  </channel>
</rss>

