Good evening,
I am having problems converting the following string to a decimal number. I extract the number from a web and it comes with. instead of with, When trying to replace the. For the, the result is the following:
x = ,,,,,
replace all the digits and not just the point.
This is my code:
x = "18.58"
if "." in x:
x = re.sub(".", ",", x)
if x == float:
x = round(x)
Thanks for your help
Regards,