f-string

:.2f two decimals; :,.0f thousands separator.

x = 1234.567
s = f'{x:.2f}'  # '1234.57'