How to make that f"…" string formatting uses comma instead of dot as decimal separator?
How to make that f"…" string formatting uses comma instead of dot as decimal separator? Question: I tried: import locale print(locale.locale_alias) locale.setlocale(locale.LC_ALL, ”) locale.setlocale(locale.LC_NUMERIC, "french") print(f"{3.14:.2f}") but the output is 3.14 whereas I would like 3,14. How to do this with f"…" string formatting? Note: I don’t want to use .replace(".", ",") Note: I’m looking …