Lines Matching refs:grouping
122 def _grouping_intervals(grouping): argument
124 for interval in grouping:
141 grouping = conv[monetary and 'mon_grouping' or 'grouping']
142 if not grouping:
152 for interval in _grouping_intervals(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
198 if grouping:
207 if grouping:
213 def format_string(f, val, grouping=False, monetary=False): argument
229 new_val.append(_format(perc.group(), val, grouping, monetary))
242 grouping,
250 def format(percent, value, grouping=False, monetary=False, *additional): argument
263 return _format(percent, value, grouping, monetary, *additional)
265 def currency(val, symbol=True, grouping=False, international=False): argument
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)