Format number with commas

I’m displaying a number to a user with a prompt. Is there a way to add commas automatically so that instead of showing 344905890, 344,905,890 is shown instead?

I’ve looked at the string formatting docs but none of the values there satisfy my need.