<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Field scale (decimal places) issuse in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154176#M11908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The current script is ran in a temp gdb, i decided to run the script on a shapefile for testing because of the decimal issues i was having. After the script is ran i export the table and use the table in excel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the calculate field looks like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
PT = "C:\GIS\PARCEL TOOL\ParcelTool.gdb\FINAL_SF"

arcpy.CalculateField_management(PT, "Acres", "!SHAPE.AREA@Acres!", "PYTHON" )
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before running the CalculateField_management my field scale is set to 3, example Acres = 1.236&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But after running CalculateField_management my field scale is set to 6, example Acres = 1.236789&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArgGIS 10.1 with SP1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:14:00 GMT</pubDate>
    <dc:creator>TonyAlmeida</dc:creator>
    <dc:date>2021-12-11T08:14:00Z</dc:date>
    <item>
      <title>Field scale (decimal places) issuse</title>
      <link>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154174#M11906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed that when using arcpy.CalculateField_management in python on a feature class it's changes the field scale (decimal places).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a shapefile with an Acres filed of field scale of 3 but now it seems to have a field scale of 11. Why after running arcpy.CalculateField_management does it change the field scale? This is annoying after your export the table and open it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any explanation or help would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 15:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154174#M11906</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2013-12-31T15:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field scale (decimal places) issuse</title>
      <link>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154175#M11907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first you state that you are using a feature class, then a shapefile, and then at some point you are performing an export.&amp;nbsp; Can you explain your workflow a little more?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, what version of the software are you using, including service packs?&amp;nbsp; i.e. 10.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 15:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154175#M11907</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-12-31T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field scale (decimal places) issuse</title>
      <link>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154176#M11908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The current script is ran in a temp gdb, i decided to run the script on a shapefile for testing because of the decimal issues i was having. After the script is ran i export the table and use the table in excel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the calculate field looks like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
PT = "C:\GIS\PARCEL TOOL\ParcelTool.gdb\FINAL_SF"

arcpy.CalculateField_management(PT, "Acres", "!SHAPE.AREA@Acres!", "PYTHON" )
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before running the CalculateField_management my field scale is set to 3, example Acres = 1.236&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But after running CalculateField_management my field scale is set to 6, example Acres = 1.236789&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArgGIS 10.1 with SP1&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154176#M11908</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2021-12-11T08:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field scale (decimal places) issuse</title>
      <link>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154177#M11909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not reproduce this with a shapefile.&amp;nbsp; However, for a File Geodatabase feature class, the Precision and Scale are ignored.&amp;nbsp; See the following &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001700000047000000" rel="nofollow" target="_blank"&gt;link&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;When you create a float, double, or integer field and specify 0 for&amp;nbsp; precision and scale, the tool will attempt to create a binary type field&amp;nbsp; if the underlying database supports it. &lt;STRONG&gt;Personal and file geodatabases&amp;nbsp; support only binary type fields, and precision and scale are ignored.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 17:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154177#M11909</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-12-31T17:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field scale (decimal places) issuse</title>
      <link>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154178#M11910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;JSkinn3, oh i see. I did not catch that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess i'll just have to formate cells to 3 decimal places in Excel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 19:25:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/field-scale-decimal-places-issuse/m-p/154178#M11910</guid>
      <dc:creator>TonyAlmeida</dc:creator>
      <dc:date>2013-12-31T19:25:11Z</dc:date>
    </item>
  </channel>
</rss>

