Skip to content

Commit 65e9bb7

Browse files
committed
Bugfix in string number formatting
1 parent 6834d12 commit 65e9bb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MiniPy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def set_symdiff(itr0, itr1):
5353
def formatnum(num, digits, scientificNotation=None):
5454

5555
def normalFormatting(num, digits):
56-
return ('{:.%f}' % digits).format(num)
56+
return ('{:.%df}' % digits).format(num)
5757

5858
def scientificFormatting(num, digits):
59-
return ('{:.%e}' % digits).format(num)
59+
return ('{:.%de}' % digits).format(num)
6060

6161
if scientificNotation is False:
6262
return normalFormatting(num, digits)

0 commit comments

Comments
 (0)