I have a drain pipe layer that includes fields for upstream elevation, downstream elevation, and length. I want to calculate the slope. However, the fields are all string fields. Is there a way to do this in ArcGIS Pro without adding or otherwise changing the fields? I remember in the old days with avenue you could use a thing like {field}.asnumber or {field}.asstring to a calculate function to do stuff like this, but I don't know if there's a way to do it in Pro. Thanks!
Solved! Go to Solution.
Related you could use the field calculator with Python and the float() function then.
Use the field calulator with python and the int() function.
Thank you.
But would that round up my decimals?
Related you could use the field calculator with Python and the float() function then.
that sounds perfect! Thanks!
Please mark one of the replies as correct to close out the question once you get it working.
So I used the float function. It mostly worked. Ended up with values in scientific notation. Got it worked out in the end though, so thank you to those who replied.
Matthew, I unmarked your reply and marked Robert's as the answer since your comment saying thanks isn't really the answer to your own question.