Labeling numeric data - can you set the number of displayed decimals?

2755
1
04-20-2015 01:02 PM
DennisGeasan
Occasional Contributor II

I'm displaying numeric data as a label.  Is there a means to define the number of displayed decimal digits?  The data is recorded to 6 decimals but I want the label to display only 2 decimals and round the value to the two decimals.

0 Kudos
1 Reply
CraigGreene
Esri Contributor

I realize this reply comes a little late, but I happened to see it when answering a similar question, so, if you're still out there the answer is Yes, you can do this. Here is a sample expression you can apply to the field that will round the values to the hundredths position. Replace FIELD with your field.

Function FindLabel ( [FIELD] )
  FindLabel = round([FIELD], 2)
End Function

Hope this helps and that it wasn't too late!