This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients
Date 2005-03-01.15:38:10
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=44345

This is probably a corner case that got missed in the
int/long convergence.  Still, is there a reason not to use
%.f when you know you are passing a float and want to
display it with no fractional component?

>>> '%.f' % 2**50 
'1125899906842624'

or %ld if you expect the range to exceed the integer limits of
your hardware?

>>> '%ld' % 2**50
'1125899906842624'

I agree the documentation could probably be improved
in this area.
History
Date User Action Args
2008-01-20 09:57:35adminlinkissue1153226 messages
2008-01-20 09:57:35admincreate