mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 02:54:05 +01:00
Math: Convert the output of factorial() to a float.
This commit is contained in:
parent
0d627c05b7
commit
2d084f4deb
@ -109,7 +109,7 @@ class Math(callbacks.Plugin):
|
||||
return math.pow(x, 1.0/3)
|
||||
def _factorial(x):
|
||||
if x<=10000:
|
||||
return math.factorial(x)
|
||||
return float(math.factorial(x))
|
||||
else:
|
||||
raise Exception('factorial argument too large')
|
||||
_mathEnv['sqrt'] = _sqrt
|
||||
|
Loading…
Reference in New Issue
Block a user