Mirror Engine API
Mirror Engine API / math / nextPowerOfTwo
function nextPowerOfTwo(val: number): number
Returns the next power of 2 for the specified value.
number
The value for which to calculate the next power of 2.
The next power of 2.