<?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 string-length() for decimal questions is unreliable in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-for-decimal-questions-is-unreliable/m-p/1387567#M55058</link>
    <description>&lt;P&gt;So I was trying to troubleshoot something, and I noticed that string-length for decimal questions stopped behaving as expected for longer numbers.&lt;/P&gt;&lt;P&gt;Here was my set-up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_2-1709052043246.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96010iE29B3D3432A0D943/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_2-1709052043246.png" alt="abureaux_2-1709052043246.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_7-1709052196796.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96015i1D6FAA497558E111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_7-1709052196796.png" alt="abureaux_7-1709052196796.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_8-1709052204304.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96016i83DDBBECE3104BCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_8-1709052204304.png" alt="abureaux_8-1709052204304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At a certain point, string-length() stops working properly on decimal fields. It's misleading, because it does work for smaller character counts, but then stops working around 15ish characters.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All "1" breaks at 22 characters&lt;/LI&gt;&lt;LI&gt;All "9" breaks at 15 characters&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I thought, "well, convert decimal to string and problem solved?". Nope. In this example, I first convert the value to a string:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_10-1709052395823.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96020i84933F62C8A627F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_10-1709052395823.png" alt="abureaux_10-1709052395823.png" /&gt;&lt;/span&gt;&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="abureaux_9-1709052364044.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96019i29676B29DEF86D1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_9-1709052364044.png" alt="abureaux_9-1709052364044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 17:11:00 GMT</pubDate>
    <dc:creator>abureaux</dc:creator>
    <dc:date>2024-02-27T17:11:00Z</dc:date>
    <item>
      <title>string-length() for decimal questions is unreliable</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-length-for-decimal-questions-is-unreliable/m-p/1387567#M55058</link>
      <description>&lt;P&gt;So I was trying to troubleshoot something, and I noticed that string-length for decimal questions stopped behaving as expected for longer numbers.&lt;/P&gt;&lt;P&gt;Here was my set-up:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_2-1709052043246.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96010iE29B3D3432A0D943/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_2-1709052043246.png" alt="abureaux_2-1709052043246.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_7-1709052196796.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96015i1D6FAA497558E111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_7-1709052196796.png" alt="abureaux_7-1709052196796.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_8-1709052204304.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96016i83DDBBECE3104BCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_8-1709052204304.png" alt="abureaux_8-1709052204304.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;At a certain point, string-length() stops working properly on decimal fields. It's misleading, because it does work for smaller character counts, but then stops working around 15ish characters.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;All "1" breaks at 22 characters&lt;/LI&gt;&lt;LI&gt;All "9" breaks at 15 characters&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I thought, "well, convert decimal to string and problem solved?". Nope. In this example, I first convert the value to a string:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_10-1709052395823.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96020i84933F62C8A627F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_10-1709052395823.png" alt="abureaux_10-1709052395823.png" /&gt;&lt;/span&gt;&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="abureaux_9-1709052364044.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96019i29676B29DEF86D1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_9-1709052364044.png" alt="abureaux_9-1709052364044.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 17:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-length-for-decimal-questions-is-unreliable/m-p/1387567#M55058</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-27T17:11:00Z</dc:date>
    </item>
  </channel>
</rss>

