Fixed padding bug of sprintf function

(cherry picked from commit 9f2cdfea82)
This commit is contained in:
Serhat
2020-10-01 23:06:12 +03:00
committed by Rémi Verschelde
parent 1a71792655
commit 09a8dd7b3b
2 changed files with 4 additions and 3 deletions

View File

@@ -767,7 +767,7 @@
Returns the integer modulus of [code]a/b[/code] that wraps equally in positive and negative.
[codeblock]
for i in range(-3, 4):
print("%2.0f %2.0f %2.0f" % [i, i % 3, posmod(i, 3)])
print("%2d %2d %2d" % [i, i % 3, posmod(i, 3)])
[/codeblock]
Produces:
[codeblock]