Formatting Floats in Python – Using Comma as Decimal Separator and Dot as Thousands Separator (5,000.32 -> 5.000,32)
In Python, the default formatting of floating-point numbers uses a dot (.) as the decimal separator and a comma (,) as the thousands separator. However, in some countries and regions, the opposite is true – a comma is used as the decimal separator and a dot is used as the thousands separator. In this post, … Read more