Perform the bitwise operation OR

on the numbers !6 | !5

Convert to binary form

Since Number 1 of 6 is not in binary form, we need to convert it to binary format

From this conversion, we get 110 as our binary number

Convert to binary form

Since Number 2 of 5 is not in binary form, we need to convert it to binary format

From this conversion, we get 101 as our binary number

Handle negation sign

For 1, switch all 1's with 0's and all 0's with 1's

10

10

01

Our negation number is 001

Handle negation sign

For 2, switch all 1's with 0's and all 0's with 1's

10

01

10

Our negation number is 001010

Make sure each of binary term has a length of 3,
the length of our longest binary number

Digit 1:  001 OR 010

For a bitwise OR operation, bit 1 or bit 2 or both bit 1 and bit 2 need to be 1

For bit 1, this is not the case:  0 OR 0 = 0

Digit 2:  001 OR 010

For a bitwise OR operation, bit 1 or bit 2 or both bit 1 and bit 2 need to be 1

For bit 2, this is the case:  0 OR 1 = 1

Digit 3:  001 OR 010

For a bitwise OR operation, bit 1 or bit 2 or both bit 1 and bit 2 need to be 1

For bit 3, this is the case:  1 OR 0 = 1

This operation is shown below:

  001
OR 010
= 011

Final Answer:

Using our binary calculator, we can convert 001010011 to an integer.

How does the Bitwise Operations Calculator work?
Free Bitwise Operations Calculator - Performs bitwise operations between two decimal or binary numbers:
* Bitwise OR
* Bitwise AND
* Bitwise XOR

Also performs Bitwise NOT on 1 number
This calculator has 2 inputs.
What 3 formulas are used for the Bitwise Operations Calculator?
Bitwise OR = either bit can be 1
Bitwise AND means both bits must be 1
NOT reverses the bit value
What 2 concepts are covered in the Bitwise Operations Calculator?
bitwise
operates on one or more bit patterns or binary numerals at the individual bit level
bitwise operations
Example calculations for the Bitwise Operations Calculator
Bitwise Operations Calculator Video

Tags:



Add This Calculator To Your Website