From a7c5dc50e5445c3aa3b45ea4be48fc179bd4cce8 Mon Sep 17 00:00:00 2001 From: HybridDog Date: Tue, 5 Mar 2019 10:11:21 +0100 Subject: Add math.factorial (#8298) --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 05ea6b4bc..593ab50dd 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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` -- cgit v1.2.3