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

John Machin sjmachin at lexicon.net
Fri Jun 2 02:10:47 CEST 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