mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
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
Block a user