<?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: Experience Builder Labels (Rounding to 4 decimal places) in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1693957#M22966</link>
    <description>&lt;P&gt;This fix worked for me but there should be a much easier and more intuitive way to do this instead of having to go into the code.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2026 16:06:57 GMT</pubDate>
    <dc:creator>MatthewStull1</dc:creator>
    <dc:date>2026-04-01T16:06:57Z</dc:date>
    <item>
      <title>Experience Builder Labels (Rounding to 4 decimal places)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476145#M12725</link>
      <description>&lt;P&gt;Morning,&lt;/P&gt;&lt;P&gt;I am fairly new to Experience Builder and writing label expressions in Experience builder which I believe uses JavaScript/Arcade?&lt;/P&gt;&lt;P&gt;I have a field called "WAYMARK_VALUE" which has been rounded to 4 decimal places in the 'Fields' list and it also shows correctly in the pop up box shown below. When applying the labels it seem to have a mixture of decimal places, from zero places and to the correct 4 places, so i am a bit puzzled why this is not working?&lt;/P&gt;&lt;P&gt;I have copied a piece of script I found online which i thought would work, but unfortunately it doesn't seem to consistently work, so any help would be much appreciated.&lt;/P&gt;&lt;P&gt;Once i have the rounding issue sorted, i would then like to add multiple attributes to my label expression, ideally the "ELR" attribute and the "WAYMARK_VALUE" rounded to 4 decimal places. (ie;&amp;nbsp; &lt;STRONG&gt;BLT1 - 47.0880&lt;/STRONG&gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StephenDuncan_0-1716284928373.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104731i84805CD82027A39A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StephenDuncan_0-1716284928373.png" alt="StephenDuncan_0-1716284928373.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="StephenDuncan_1-1716284970211.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104732i23DCA2B259FBB98B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StephenDuncan_1-1716284970211.png" alt="StephenDuncan_1-1716284970211.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 10:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476145#M12725</guid>
      <dc:creator>StephenDuncan</dc:creator>
      <dc:date>2024-05-21T10:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Labels (Rounding to 4 decimal places)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476175#M12727</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/301804"&gt;@StephenDuncan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your question.&lt;/P&gt;&lt;P&gt;Looking into the documentation for the "Round" function, it seems to be expected that any trailing zeros will be truncated - which I assume is the behaviour you are experiencing, rather than the rounding not working at all?&amp;nbsp;&lt;A href="https://developers.arcgis.com/arcade/function-reference/math_functions/#round" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/math_functions/#round&lt;/A&gt;&lt;/P&gt;&lt;P&gt;From what I can tell, there does not seem to be a way at the moment to stop this behaviour. If you take a look through this documentation:&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-retain-trailing-zeros-after-the-decimal-point-in-000024861#:~:text=To%20retain%20trailing%20zeros%20after,Arcade%3A%20Text%20for%20more%20information." target="_blank"&gt;How To: Retain Trailing Zeros after the Decimal Point in a Label Using Arcade in ArcGIS Pr (esri.com)&lt;/A&gt;&amp;nbsp;we do have a workflow in Arcade to resolve this in ArcGIS Pro that is worth trying for your labels - although I have not yet been able to get this to work in ArcGIS Online.&lt;/P&gt;&lt;P&gt;Let me know if you have any questions about any of the above!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Issy&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 11:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476175#M12727</guid>
      <dc:creator>IssyAmis</dc:creator>
      <dc:date>2024-05-21T11:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Labels (Rounding to 4 decimal places)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476208#M12729</link>
      <description>&lt;P&gt;Afternoon Issy,&lt;/P&gt;&lt;P&gt;Thank you for getting back to me on this and supplying the links to the information. I have played around with the Text function and it seems to have worked in ArcGIS Online Experience builder on the labels &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StephenDuncan_0-1716295027142.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104751iD01BA27B11667945/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StephenDuncan_0-1716295027142.png" alt="StephenDuncan_0-1716295027142.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This was the script that seems to work for me:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Text&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;WAYMARK_VALUE&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'###.0000'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StephenDuncan_1-1716295196713.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104753i853CC0406BF32EB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StephenDuncan_1-1716295196713.png" alt="StephenDuncan_1-1716295196713.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hopefully you are also able to get it to work for you!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Appreciate your help,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Steve&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 May 2024 12:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476208#M12729</guid>
      <dc:creator>StephenDuncan</dc:creator>
      <dc:date>2024-05-21T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Labels (Rounding to 4 decimal places)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476231#M12730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/301804"&gt;@StephenDuncan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's great, I'm glad that's worked for you!&lt;/P&gt;&lt;P&gt;Issy&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:11:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1476231#M12730</guid>
      <dc:creator>IssyAmis</dc:creator>
      <dc:date>2024-05-21T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Experience Builder Labels (Rounding to 4 decimal places)</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1693957#M22966</link>
      <description>&lt;P&gt;This fix worked for me but there should be a much easier and more intuitive way to do this instead of having to go into the code.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2026 16:06:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/experience-builder-labels-rounding-to-4-decimal/m-p/1693957#M22966</guid>
      <dc:creator>MatthewStull1</dc:creator>
      <dc:date>2026-04-01T16:06:57Z</dc:date>
    </item>
  </channel>
</rss>

