Change 4th last character of string

Hello all,

I am trying to change the 4th last character in a string.
str = “100,100”
outstr = “100.100”
I want to only change the , to a . but I can’t use replace because if the number is 1,100,100 then it will change both of the commas.

How can I do this?

1 Like


you can try this!

1 Like

Hi @dvn,

Pls try like this