Custom decimals in labels

2193
3
Jump to solution
03-19-2023 02:36 AM
teakplantation
Occasional Contributor

In ArcGIS Pro 3.1 in the attribute table of my points feature class I have limited the decimals of a numeric field to 2 decimal places using the rounding option: 

rounding in labels.png

After applying the changes, the numbers display correctly in the attribute table. However, the labels on the map still show the full extent of decimals (see upper right of the image) without the rounding applied.

How I can achieve the same 2 digit display in the labels as in the attribute table?

Kind regards

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

Specify text for labels—ArcGIS Pro | Documentation

label.png

very inconvenient since label expressions don't use the same field delimiters as regular python

 


... sort of retired...

View solution in original post

3 Replies
DanPatterson
MVP Esteemed Contributor

Specify text for labels—ArcGIS Pro | Documentation

label.png

very inconvenient since label expressions don't use the same field delimiters as regular python

 


... sort of retired...
teakplantation
Occasional Contributor

Thanks Dan!

In my  case round(number($feature.RASTERVALU), 2) using Arcade 🙂

JerryJ
by
New Contributor

Using the script above, numbers ending with .00 are labeled without the .00, i.e., 29 not 29.00

0 Kudos