SyntaxFix
Write A Post
Hire A Developer
Questions
In python3 the following works:
>>> v=10.4 >>> print('% 6.2f' % v) 10.40 >>> print('% 12.1f' % v) 10.4 >>> print('%012.1f' % v) 0000000010.4