Skip to main content

Mathf.ClosestPowerOfTwo(number value)

Returns the closest power of two value.

Parameters:

NameTypeDescription
valuenumbervalue

Returns:

typeDescription
number

Usage

---@type number
local value;


local val0 = Mathf:ClosestPowerOfTwo(value)