34,333
edits
Changes
→Ruby Bitwise Operators
== Ruby Bitwise Operators ==
Bitwise operators allow operations to be performed on number at the bit level. As you are probably already aware, computers deals deal solely with binary (in other words ones and zeros). For example, the computer sees the number 520 as 01010.
The Ruby bitwise operators allow us to operate and the level of the ones and zeros that make up a number: