I am using ArcGIS Pro 1.4.0. My current problem is that all new numeric values (float and double) are being rounded into whole numbers in the attribute table of shapefiles. According to this ArcGIS Desktop help site Formatting numeric fields in tables ,
"six is the default number of decimal places to display in the Table window."
However, this does not seem to be the case for my version of ArcGIS. For example, see below image. First, I calculated the geometry of gridcells in my shapefile (POLY_AREA). Next, I created a new field and calculated it to equal POLY_AREA. As displayed, all numbers are rounded to the whole number. I've included the python window in the clipped image for reference. Also, I am not sure what version of ArcMAP the original shapefiles were created in, but definitely pre-ArcGIS pro. The issue continues to occur even after exporting/copying them several times within pro.
In this instance, the rounding is not a problem; however, moving forward I will be conducting calculations on many small decimals. I know how to manually change the display, but it is very tedious to do tens or hundreds of times.
Is this a bug, or does anyone know how to globally change the default display of numeric values?
Best Answer
In my ArcGIS Pro it doesn't appear to have any option to set default decimal places, but it does appear to round to 6 decimal places, the same as ArcGIS Desktop.
For example, here I have entered the number
123.12345678901234567890
, which it has rounded for storing to123.12345678901235
, and is rounding for display to123.123457
You can modify the numeric display settings for specific fields in the Attribute Table. (Note that I had to first set my displayed decimal places to
0
in order to produce these examples. It was showing the correct decimal places as default for me).Click on the column header and select Field
You will see there's a place to set the Number Format. Click on the ellipsis
...
here and it will open the Number Format optionsYou can now set your displayed decimal places
You will note it says
so it does not change what is stored in the database, just how it is displayed in the attribute table or info window in ArcGIS Pro.