money.py 190 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 import locale locale.setlocale(locale.LC_ALL, 'id_ID.utf8') def thousand(n, float_point=0): pattern = '%.{:d}f'.format(float_point) return locale.format_string(pattern, n, True)