def fmt(val):
    return f"{val:,.2f}"
assert fmt(1000) == "1,000.00"
assert fmt(1234.5) == "1,234.50"
print("SELF-TEST PASS")