Select to view content in your preferred language

Changing the number of decimal places in a field in ArcGis PRO 3.3.2

527
2
10-30-2024 10:54 AM
MarzenaChojnacka
Emerging Contributor

MarzenaChojnacka_0-1730297217903.png

I can't change the data type in my table. To change the number of decimal places, I applied a script (as you can see above), but it didn't work. Do you have any thoughts on why it didn't work or what I can do to round the field to two decimal places?

I also tried these two  formulas  2 formula to try to round the number to 2 decimal places but it did not work:

{0:.2f}.format(!RATE_5YR!)

f'{!RATE_5YR!:.2f}'

Does anyone have a suggestion on how to change the number of decimal places?

0 Kudos
2 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor

If you go into fields view --> number format --> double click --> click the 3 dots and change decimal places there. 

Laura_0-1730313430937.png

 

0 Kudos
MarzenaChojnacka
Emerging Contributor

I tried this first, but this changes the display only, the actual number of decimal points remains the same.

Thank you.

 

0 Kudos