3 ms·
For me, Specifically f”{x:,}” to return the value of x as a comma separated number string
by oneoff786 5y ago
For me, Specifically f”{x:,}” to return the value of x as a comma separated number string
- camel_Snake 5y agofwiw `format(x, ',')` will do this too and looks a bit more readable imo
- oneoff786 5y agoI think that holds true for just x, but not for, say, f”Total Cost: {round(x / 1000000, 1):,}M”