diff options
Diffstat (limited to 'meta/template/math.lua')
-rw-r--r-- | meta/template/math.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meta/template/math.lua b/meta/template/math.lua index d9837424..c126aef7 100644 --- a/meta/template/math.lua +++ b/meta/template/math.lua @@ -137,16 +137,18 @@ function math.log(x, base) end function math.log10(x) end ---#DES 'math.max' ----@param x number ----@param ... number ----@return number +---@generic Number: number +---@param x Number +---@param ... Number +---@return Number ---@nodiscard function math.max(x, ...) end ---#DES 'math.min' ----@param x number ----@param ... number ----@return number +---@generic Number: number +---@param x Number +---@param ... Number +---@return Number ---@nodiscard function math.min(x, ...) end @@ -225,7 +227,7 @@ function math.tanh(x) end ---@version >5.3 ---#DES 'math.tointeger' ----@param x number +---@param x number|string ---@return integer? ---@nodiscard function math.tointeger(x) end |