Используя Python v2, у меня есть значение, проходящее через мою программу который выдает число, округленное до 2 десятичных знаков в конце:
вот так:
print ("Total cost is: ${:0.2f}".format(TotalAmount))
Есть ли способ вставить значение запятой каждые 3 цифры слева от десятичной точки?
Т.е.: 10000.00 становится 10000,00 или 1000000.00 становится 1,000,000.00
Спасибо за любую помощь.