correction bug locale us-US
This commit is contained in:
@@ -39,8 +39,7 @@ def to_euro(x):
|
|||||||
|
|
||||||
def to_usd(x):
|
def to_usd(x):
|
||||||
"""Takes a float and returns a string"""
|
"""Takes a float and returns a string"""
|
||||||
locale.setlocale(locale.LC_ALL,'en-US')
|
return to_euro(x).replace('€','$')
|
||||||
return locale.currency(x, True, True)
|
|
||||||
|
|
||||||
|
|
||||||
def to_int(x):
|
def to_int(x):
|
||||||
|
|||||||
Reference in New Issue
Block a user