Scientific Calculator on BREW "psec" - 6 / 7 -
6. Integer Operations
6.1. Inputting Numbers in Hex Mode
To input numbers A through F in hex mode, press the "SFT" key from the numbers keyboard.
6.2. Integer Mode Operators
No functions are available in integer mode, only bit operators are offered.
To get to the bit operators keyboard, press the "OPE" key from the numbers keyboard.
Operators "+", "-", "*", "/" are the four standard arithmetic operators, and "mod" is used to calculate remainders.
Other arithmetic operators are explained in the table below. The results are displayed in unsigned Hex mode, using 32-bit precision.
Operator | Meaning | Example | |
---|---|---|---|
Input | Output | ||
not | Inverts the value of each bit | not 1234 | FFFFEDCB |
and | Logical product of the 2 values of each bit | 1234 and 5678 | 00001230 |
ior | Logical sum of the 2 values of each bit | 1234 ior 5678 | 0000567C |
xor | Exclusive logical sum of the 2 values of each bit | 1234 xor 5678 | 0000444C |