Sets the bit at the specified position to 1.
This function performs a bitwise OR operation to ensure that the bit at the kth position is set to 1.
k
1
The new number with the bit at position k set to 1.
The number in which the bit will be set.
The position of the bit to set (0-indexed).
Generated using TypeDoc
Sets the bit at the specified position to 1.
This function performs a bitwise OR operation to ensure that the bit at the
kth position is set to1.Returns
The new number with the bit at position
kset to 1.