Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

fwiw `format(x, ',')` will do this too and looks a bit more readable imo


I think that holds true for just x, but not for, say,

f”Total Cost: {round(x / 1000000, 1):,}M”




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: