MathfClosestPowerOfTwoOn this pageMathf.ClosestPowerOfTwo(number value) Returns the closest power of two value. Parameters: NameTypeDescriptionvaluenumbervalue Returns: typeDescriptionnumber Usage ---@type numberlocal value;local val0 = Mathf:ClosestPowerOfTwo(value)