We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6834d12 commit 65e9bb7Copy full SHA for 65e9bb7
MiniPy.py
@@ -53,10 +53,10 @@ def set_symdiff(itr0, itr1):
53
def formatnum(num, digits, scientificNotation=None):
54
55
def normalFormatting(num, digits):
56
- return ('{:.%f}' % digits).format(num)
+ return ('{:.%df}' % digits).format(num)
57
58
def scientificFormatting(num, digits):
59
- return ('{:.%e}' % digits).format(num)
+ return ('{:.%de}' % digits).format(num)
60
61
if scientificNotation is False:
62
return normalFormatting(num, digits)
0 commit comments