Lines Matching refs:monetary
138 def _group(s, monetary=False): argument
140 thousands_sep = conv[monetary and 'mon_thousands_sep' or 'thousands_sep']
141 grouping = conv[monetary and 'mon_grouping' or 'grouping']
183 def _format(percent, value, grouping=False, monetary=False, *additional): argument
189 formatted = _localize(formatted, grouping, monetary)
193 def _localize(formatted, grouping=False, monetary=False): argument
199 parts[0], seps = _group(parts[0], monetary=monetary)
200 decimal_point = localeconv()[monetary and 'mon_decimal_point'
208 formatted, seps = _group(formatted, monetary=monetary)
213 def format_string(f, val, grouping=False, monetary=False): argument
229 new_val.append(_format(perc.group(), val, grouping, monetary))
243 monetary,
250 def format(percent, value, grouping=False, monetary=False, *additional): argument
263 return _format(percent, value, grouping, monetary, *additional)
276 s = _localize(f'{abs(val):.{digits}f}', grouping, monetary=True)
332 def localize(string, grouping=False, monetary=False): argument
334 return _localize(string, grouping, monetary)