isPowerOfTwo

fun isPowerOfTwo(value: Int): Boolean

Indicates whether a specified value is a power of two.

Return

true if the specified value is a power of two, false othwerwise

Parameters

value

the value to test