isPowerOfTwo

fun isPowerOfTwo(value: Int): Boolean

Returns true if value is a power of two.

Return

Whether the given number is a power of two or not.