Skip to main content

Mathf.IsPowerOfTwo(number value)

Returns true if the value is power of two.

Parameters:

NameTypeDescription
valuenumbervalue

Returns:

typeDescription
booleantrue if the value is power of two.

Usage

---@type number
local value;


local val0 = Mathf:IsPowerOfTwo(value)