blob: b704b143e6be0ba632b49b0113d0ae7d0ec788fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
[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.'
|