Select to view content in your preferred language

String to Int or vice versa

84
2
Jump to solution
Wednesday
RickOHaratheonly
Emerging Contributor

I have a point feature and a table that I need to join based on parcel ID. I need to make the parcel IDs both ints or strings. These are fairly small and simple files, but I am not able to cast to int, or remove a .0 that appears at the end if I cast to string. Is there a simple fix to this? Please and thanks.

RickOHaratheonly_0-1734534019570.png

.0 added at the end.

RickOHaratheonly_1-1734534904417.png

I'm not sure how this was created, but removing the last 2 characters doesn't seem to be possible.

 

RickOHaratheonly_2-1734535076708.png

 

Please help.

 

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor
a = 123456789.0

str(int(a))
'123456789'

int or round, then str


... sort of retired...

View solution in original post

2 Replies
DanPatterson
MVP Esteemed Contributor
a = 123456789.0

str(int(a))
'123456789'

int or round, then str


... sort of retired...
RickOHaratheonly
Emerging Contributor

That worked. Thank you.

0 Kudos