PROBLEM

The Calculate Geometry tool returns whole numbers for numerical fields in ArcGIS Pro

Last Published: January 13, 2022

Description

In ArcGIS Pro, running the Calculate Geometry tool on a numerical field returns whole numbers instead of decimal values, as shown in the image below.

In ArcGIS Pro, running the Calculate Geometry tool on a numerical field returns whole numbers such as 19, 260, and 798 instead of decimal values.

Cause

This issue occurs when the field data type is a long or short integer that does not store decimal values. Refer to ArcGIS Pro: Numbers for more information.

In the feature layer's attribute table, field displays long as the field data type while another numerical field data type is double.

Solution or Workaround

To resolve this issue, change the field data type to double or float by creating a new field in the feature layer’s attribute table.

In ArcGIS Pro, create a new field with the double or float field data type. Refer to How To: Change the data type of an existing field in ArcGIS Pro for instructions.

After creating a new field, float or double is selected from the drop-down menu in the Data Type column.

The image below shows the decimal values returned for numerical fields after running the Calculate Geometry tool in ArcGIS Pro.

In ArcGIS Pro, running the Calculate Geometry tool on a new field returns the decimal values instead of whole numbers.

Article ID:000026870

Software:
  • ArcGIS Pro 2 8 x
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 2 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options