Convert '165.0' to int

rantingrick rantingrick at gmail.com
Fri Jul 22 15:34:05 EDT 2011


On Jul 22, 2:32 pm, rantingrick <rantingr... at gmail.com> wrote:
> >>> '{0:,.0f}'.format(2**53)
> '9,007,199,254,740,992'

Would have been better to say

>>> '{0:,}'.format(2**53)
'9,007,199,254,740,992'



More information about the Python-list mailing list