Why can “%.10f” % Decimal(u) emit a string with a literal colon?

大憨熊 提交于 2019-11-28 21:03:55

Although not an "answer", I can give you my results on a slightly newer version running on AIX.

Sorry that I'm unable to replicate your problem.

[lholtscl@ibm3 ~]$ python
Python 2.7.13 (default, Sep  7 2017, 21:08:50) [C] on aix7
Type "help", "copyright", "credits" or "license" for more information.
>>> print "%.10f" % 123456789012
123456789012.0000000000
>>> '{0:.10f}'.format(123456789012)
'123456789012.0000000000'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!