English

How To: Round numbers of an attribute table to the nearest nth value

Summary

Instructions provided describe how to round values in an attribute table to the nearest nth value using the Field Calculator.

Procedure

  1. Open the attribute table.
  2. Right-click the field heading and click Field Calculator from the context menu.
  3. Select the Python radio button at the top of the Field Calculator.
  4. Paste the following Python expression into the Field Calculator text box.
    Code:
    round(!FIELDNAME!,N)

  5. Replace FIELDNAME with the field to be rounded and N with the value to round the values to.
  6. Click OK to execute the calculation.

Related Information