Set bit

Sets a specific bit in a binary number

Set the bit of a number to 1


This function sets a specific bit in a binary number. The number can be entered in the formats hexadecimal, decimal, octal or binary.

The number of the bit to be set is specified in the second input line. Notice that the numbering starts with the right bit with the number 0. If the bit is already set, there is no change.

The result is displayed in the formats hexadecimal, decimal, octal and binary.


Set bit in binary number

 Select the input format
 Input
Number
Number of the bit to be set
Bit no.
  Results
Bin
Octal
Decimal
Hexadecimal
Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?