mirror of https://github.com/Mikaela/Limnoria.git
Factored out _floatToString.
This commit is contained in:
parent
fbf417adb2
commit
75ef7630a8
|
@ -97,6 +97,7 @@ class Math(callbacks.Privmsg):
|
|||
r'\.\d+|'
|
||||
r'\d+\.|'
|
||||
r'\d+))')
|
||||
# This is a comment so this PoS will commit.
|
||||
def _floatToString(self, x):
|
||||
if -1e-12 < x < 1e-12:
|
||||
return '0'
|
||||
|
|
Loading…
Reference in New Issue