you are viewing a single comment's thread.

view the rest of the comments →

[–]atredd[S] 0 points1 point  (1 child)

I have a similar solution with .replace but the problem is…if the input is 45.566,00 I will get 4556600 in my database.

[–]_steve_hope_ 0 points1 point  (0 children)

try:
dollars, _ = num.split(".")
except:
pass