From b33e7690c9d09a96e2a2eb10f1856edbd8953603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 17 Dec 2018 21:57:08 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E8=BE=9B=E8=8B=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/locale/en-US/libs/lua53/math.lni | 96 ++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) (limited to 'server/locale/en-US/libs') diff --git a/server/locale/en-US/libs/lua53/math.lni b/server/locale/en-US/libs/lua53/math.lni index 11c3e480..b704b143 100644 --- a/server/locale/en-US/libs/lua53/math.lni +++ b/server/locale/en-US/libs/lua53/math.lni @@ -1 +1,95 @@ -[math] +[abs] +description = 'Returns the absolute value of `x`.' + +[acos] +description = 'Returns the arc cosine of `x` (in radians).' + +[asin] +description = 'Returns the arc sine of `x` (in radians).' + +[atan] +description = 'Returns the arc tangent of `y/x` (in radians).' + +[ceil] +description = 'Returns the smallest integral value larger than or equal to `x`.' + +[cos] +description = 'Returns the cosine of `x` (assumed to be in radians).' + +[deg] +description = 'Converts the angle `x` from radians to degrees.' + +[exp] +description = 'Returns the value `e^x` (where `e` is the base of natural logarithms).' + +[floor] +description = 'Returns the largest integral value smaller than or equal to `x`.' + +[fmod] +description = 'Returns the remainder of the division of `x` by `y` that rounds the quotient towards zero.' + +[huge] +description = 'A value larger than any other numeric value.' + +[log] +description = 'Returns the logarithm of `x` in the given base.' + +[max] +description = 'Returns the argument with the maximum value, according to the Lua operator `<`.' + +[maxinteger] +description = 'An integer with the maximum value for an integer.' + +[min] +description = 'Returns the argument with the minimum value, according to the Lua operator `<`.' + +[mininteger] +description = 'An integer with the minimum value for an integer.' + +[modf] +description = 'Returns the integral part of `x` and the fractional part of `x`.' + +[pi] +description = 'The value of `π`.' + +[rad] +description = 'Converts the angle `x` from degrees to radians.' + +[random] +description = [[ +* `math.random()`: Returns a float in the range [0,1). +* `math.random(n)`: Returns a integer in the range [1, n]. +* `math.random(m, n)`: Returns a integer in the range [m, n]. +]] + +[randomseed] +description = 'Sets `x` as the "seed" for the pseudo-random generator.' + +[sin] +description = 'Returns the sine of `x` (assumed to be in radians).' + +[sqrt] +description = 'Returns the square root of `x`.' + +[tan] +description = 'Returns the tangent of `x` (assumed to be in radians).' + +[tointeger] +description = 'If the value `x` is convertible to an integer, returns that integer.' + +[type] +[[.enums]] +name = 'type' +enum = 'integer' +description = '`x` is an integer.' +[[.enums]] +name = 'type' +enum = 'float' +description = '`x` is a float.' +[[.enums]] +name = 'type' +code = 'nil' +description = '`x` is not a number.' + +[ult] +description = 'Returns `true` if and only if `m` is below `n` when they are compared as unsigned integers.' -- cgit v1.2.3