Can Python format long integer 123456789 to 12,3456,789 ?

John Machin sjmachin at lexicon.net
Thu Jun 1 20:10:47 EDT 2006


A.M wrote:
> Hi,
>
> Is there any built in feature in Python that can format long integer
> 123456789 to 12,3456,789 ?
>

Sorry about my previous post. It would produce 123,456,789.
"12,3456,789" is weird -- whose idea PHB or yours??




More information about the Python-list mailing list