Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python currency format locale

import locale
from unicodedata import normalize
locale.setlocale(locale.LC_ALL, 'en-ZA')
locale_currency = locale.currency(116114912749.18, grouping=True)
normalized_currency = normalize('NFKD', locale_currency)
print(normalized_currency)
 
PREVIOUS NEXT
Tagged: #python #currency #format #locale
ADD COMMENT
Topic
Name
8+4 =