1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Add math.factorial (#8298)

This commit is contained in:
HybridDog 2019-03-05 10:11:21 +01:00 committed by Loïc Blot
parent 250420e566
commit a7c5dc50e5
2 changed files with 15 additions and 0 deletions

View file

@ -2378,6 +2378,7 @@ Helper functions
* tolerance: number, default: `0.0`
* If the absolute value of `x` is within the `tolerance` or `x` is NaN,
`0` is returned.
* `math.factorial(x)`: returns the factorial of `x`
* `string.split(str, separator, include_empty, max_splits, sep_is_pattern)`
* `separator`: string, default: `","`
* `include_empty`: boolean, default: `false`