Skip to main content

Mathf.Max(number[] values)

Returns largest of two or more values.

Parameters:

NameTypeDescription
valuesnumber[]values

Returns:

typeDescription
numberReturns the largest of the values.

Usage

---@type number
local values;


local val0 = Mathf:Max( values)

umber local a;

---@type number local b;

local val0 = Mathf:Max(a, b)