<?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 Limiting decimal places in labels in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616578#M27414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Original LIDAR ground elevation measurements go to about the 20th decimal, but I only need the labels rounded to one decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following label expression, it rounded about 25% of the 2-million labels, but the remaining are still showing all 20 or so decimal places. (see attached image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$feature.NGVD; round(number([$feature.NGVD]), 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field name is "NGVD."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm purplexed as to why it appropirately rounds some but not all the labels. &amp;nbsp;They're all in the same data field.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Apr 2017 18:42:39 GMT</pubDate>
    <dc:creator>ScottFraser3</dc:creator>
    <dc:date>2017-04-28T18:42:39Z</dc:date>
    <item>
      <title>Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616578#M27414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Original LIDAR ground elevation measurements go to about the 20th decimal, but I only need the labels rounded to one decimal point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the following label expression, it rounded about 25% of the 2-million labels, but the remaining are still showing all 20 or so decimal places. (see attached image)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$feature.NGVD; round(number([$feature.NGVD]), 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field name is "NGVD."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm purplexed as to why it appropirately rounds some but not all the labels. &amp;nbsp;They're all in the same data field.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 18:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616578#M27414</guid>
      <dc:creator>ScottFraser3</dc:creator>
      <dc:date>2017-04-28T18:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616579#M27415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using VBScript in the Label Class Expression, I used the following snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Round&lt;/SPAN&gt; ([NGVD], 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my output label then drew something like 132899.5 for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 22:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616579#M27415</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2017-04-28T22:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616580#M27416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahh... following up on your suggestion, I discovered - being new to Pro, that I wasn't in Python at all.&amp;nbsp; I was actually in&amp;nbsp;some language called Arcade - which is ironic, given that as a kid you couldn't get me out of an arcade. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I discovered the "Language" drop-down list and switched to VBScript, using your code, then all was than right with the world... or at least it's elevations anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 14:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616580#M27416</guid>
      <dc:creator>ScottFraser3</dc:creator>
      <dc:date>2017-05-01T14:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616581#M27417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent - glad it worked out!&amp;nbsp; Ha - yes, I was in the arcade as an early teen a lot of well playing Space Invaders and Asteroids.&amp;nbsp; This "arcade" is "fun" I guess in other ways programmatically.&amp;nbsp; If you're so inclined, please mark my answer as "Answered" so it closes this thread.&amp;nbsp; Thx!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 14:33:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616581#M27417</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2017-05-01T14:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616582#M27418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A downside of this method is the number of decimals is not padded, ie 29.03 is displayed as "29" not "29.0". There is fortunately, another function (which also adds commas by default for large numbers):&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;FormatNumber&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;NGVD&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or, using Python (note in Python you &lt;STRONG&gt;must&lt;/STRONG&gt;&amp;nbsp;float() the value, as the label parser gets the value as string, regardless of field type! -- VBScript of course, being VBScript, doesn't care about data type)&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"{:0.1f}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;float&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;NGVD&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Apr 2020 23:29:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/616582#M27418</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2020-04-12T23:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1053706#M40491</link>
      <description>&lt;P&gt;How can we limit the decimal points when it comes to interpolation surfaces ? There is no Label tab or a Label expression option.&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 09:13:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1053706#M40491</guid>
      <dc:creator>p288794Margaritis</dc:creator>
      <dc:date>2021-05-03T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1053707#M40492</link>
      <description>&lt;P&gt;How can we limit the decimal points when it comes to interpolation surfaces ? There is no Label tab or a Label expression option&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 09:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1053707#M40492</guid>
      <dc:creator>p288794Margaritis</dc:creator>
      <dc:date>2021-05-03T09:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1337819#M73984</link>
      <description>&lt;P&gt;This works, but it's kinda silly that we have to add this expression when you can limit the decimal places in the Table Fields. Or that it's not just a formatting option in the Label Class window.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 16:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1337819#M73984</guid>
      <dc:creator>Kara_Lara</dc:creator>
      <dc:date>2023-10-13T16:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Limiting decimal places in labels</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1488960#M84447</link>
      <description>&lt;P&gt;I agree, it would be nice if labels matched what we're showing in the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 16:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/limiting-decimal-places-in-labels/m-p/1488960#M84447</guid>
      <dc:creator>Koeller_Christine_A_-_DOT</dc:creator>
      <dc:date>2024-06-11T16:34:53Z</dc:date>
    </item>
  </channel>
</rss>

