Add AND, OR, and XOR to KCalc

pull/2/head
Lyn Perrine 6 months ago
parent c085c4b94c
commit b88251ffa7

@ -58,7 +58,7 @@ To switch the calculator into number system mode :menuselection:`Settings --> Nu
If you type a number into in your numerical base you will see the underneath the buttons will show what that number is in that numerical base. To be able to change each the bits use for each operation select :menuselection:`Settings --> Show bit edit`. Then to see which bits are shown will be below what you enter into the calculator and above the numerical bases. Each number you enter will in binary have a black square if it has a 1 in binary representation for that digit and a white square if it is zero. To flip a bit simply left click on it.
To shift the bits of a number to the left on a number press the :guilabel:`Lsh` button and then the number of bits you want to shift over. To shift a number of bits to the right press the :guilabel:`Rsh` button and then the number of bits you wish to shift over. To flip all the bits of a number press the :guilbel:`Cmp` to take a ones' complement.
To perform a bitwise and on the binary numbers which takes both the 1s for both numbers enter one number press the :guilabel:`AND` button and then enter your second number. To get which number either number has in each bit, a bitwsie or, enter your first number press the :guilabel:`OR` button and then enter your second number. To choose the bits that are exclusively different, a bitwase exclusive or, enter one number press the :guilabel:`XOR` button and then enter your second number. To shift the bits of a number to the left on a number press the :guilabel:`Lsh` button and then the number of bits you want to shift over. To shift a number of bits to the right press the :guilabel:`Rsh` button and then the number of bits you wish to shift over. To flip all the bits of a number press the :guilbel:`Cmp` to take a ones' complement.
Statistic Mode

Loading…
Cancel
Save