takeLowestOneBit

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun UInt.takeLowestOneBit(): UInt

Returns a number having a single bit set in the position of the least significant set bit of this UInt number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun ULong.takeLowestOneBit(): ULong

Returns a number having a single bit set in the position of the least significant set bit of this ULong number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun UByte.takeLowestOneBit(): UByte

Returns a number having a single bit set in the position of the least significant set bit of this UByte number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi @ExperimentalUnsignedTypes fun UShort.takeLowestOneBit(): UShort

Returns a number having a single bit set in the position of the least significant set bit of this UShort number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi fun Int.takeLowestOneBit(): Int

Returns a number having a single bit set in the position of the least significant set bit of this Int number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi fun Long.takeLowestOneBit(): Long

Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi fun Byte.takeLowestOneBit(): Byte

Returns a number having a single bit set in the position of the least significant set bit of this Byte number, or zero, if this number is zero.

Common
JVM
JS
Native
1.3
@ExperimentalStdlibApi fun Short.takeLowestOneBit(): Short

Returns a number having a single bit set in the position of the least significant set bit of this Short number, or zero, if this number is zero.