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.
pc.math.powerOfTwo(32); // returns truepc.math.powerOfTwo(17); // returns false Copy
pc.math.powerOfTwo(32); // returns truepc.math.powerOfTwo(17); // returns false
Returns true if argument is a power-of-two and false otherwise.