isPowerOfTwo

open fun isPowerOfTwo(value: Int): Boolean

Returns whether the given value is a power of two.

Return

Whether the value is a power of two.

Parameters

value

The value.