Hi,
I have a string field in attribute table with values like:
125.15.
1.589.
I need to replace the last character "." by "1" in the field calculator with python parser, so my values will be like:
125.151
1.5891
How can I do this?
Thanks
Solved! Go to Solution.
like this (python parser)
# ---- example ----
a = '125.15.'
"{}1".format(a[:-1])
'125.151'
# ---- for the field calculator ----
"{}1".format(!YourFieldNameHere![:-1])
like this (python parser)
# ---- example ----
a = '125.15.'
"{}1".format(a[:-1])
'125.151'
# ---- for the field calculator ----
"{}1".format(!YourFieldNameHere![:-1])
Perfect!!
Thanks a lot Dan