formatting numbers for output

Steve Holden sholden at holdenweb.com
Wed Feb 28 14:43:22 EST 2001


"Fernando Rodríguez" <spamers at must.die> wrote in message
news:9sfv8t45ve3dpql39rmp7082gibbicf56b at 4ax.com...
> Hi!
>
> How can I format a number so it pretty prints:
>
> 15,456.6 instead of 15456.6 ?
>
> TIA
>
Take a look at the locale module.

regards
 Steve






More information about the Python-list mailing list