AnsweredAssumed Answered

Arcpy Calculate Field Stores a String in Scientific Notation

Question asked by bz89 on Dec 7, 2018
Latest reply on Dec 10, 2018 by Dan_Patterson

I have an attribute field that is API well numbers and when I calculate a "TEXT" field using arcpy it converts those API numbers into scientific notation. However, when I calculate the field in Arcmap using the GUI it stores the full API number correctly. Has anyone else had this issue? How might i ensure that this doesn't happen? 

 

I have tried both:

arcpy.CalculateField_management(shapefile,fieldname,"!{}!".format(inputfieldname),"PYTHON")

and:

arcpy.CalculateField_management(shapefile,fieldname,"str(!{}!)".format(inputfieldname),"PYTHON")

Outcomes