Skip to main content

Mathf.NextPowerOfTwo(number value)

Returns the next power of two that is equal to, or greater than, the argument.

Parameters:

NameTypeDescription
valuenumbervalue

Returns:

typeDescription
numberthe next power of two that is equal to, or greater than, the argument.

Usage

---@type number
local value;


local val0 = Mathf:NextPowerOfTwo(value)