convert price to float python

Solutions on MaxInterview for convert price to float python by the best coders in the world

showing results for - "convert price to float python"
Paul
31 Apr 2017
1from re import sub
2from decimal import Decimal
3
4money = '$6,150,593.22'
5value = Decimal(sub(r'[^\d.]', '', money))