Returns true if argument is a power-of-two and false otherwise.
Number to check for power-of-two property.
true if power-of-two and false otherwise.
math.powerOfTwo(32); // returns truemath.powerOfTwo(17); // returns false Copy
math.powerOfTwo(32); // returns truemath.powerOfTwo(17); // returns false
Returns true if argument is a power-of-two and false otherwise.