Why can “%.10f” % Decimal(u) emit a string with a literal colon?
When formatting a number to be printed, 12 digit numbers are being formatted with a colon immediately after the dot. Why is this happening? This is Python 2.7 on an AIX system. $ uname -a ; /opt/bin/python2.7 AIX myserver 1 6 00F6A5CC4C00 Python 2.7.12 (default, Sep 29 2016, 12:02:17) [C] on aix5 Type "help", "copyright", "credits" or "license" for more information. >>> '{0:.10f}'.format(123456789012) '123456789011.:000000000' >>> from decimal import Decimal >>> u=123456789012 >>> print "%.10f" % Decimal(u) 123456789011.:000000000 Further information: It is not every 12 digit number: >>> for x