blob: 237a4f4186bf2061dd50d784bf9a1f1759ffc502 [file] [log] [blame]
import locale
def fmt(value: int | float, decimals: int = 1) -> str:
return locale.format_string(f'%.{decimals}f', value, grouping=True)