Number Bases
%
Base Conversion
% displays the CONVR menu, which converts a real number to the equivalent in a specified base.
|
1:8 Hex |
Converts to hexadecimal (base 16). |
|
2:8 Bin |
Converts to binary (base 2). |
|
3:8 Dec |
Converts to decimal (base 10). |
|
4:8 Oct |
Converts to octal (base 8). |
Base Type
% " displays the TYPE menu, which lets you designate the base of a number regardless of the calculator’s current number-base mode.
|
1:h |
Designates a hexadecimal integer. |
|
2:b |
Designates a binary integer. |
|
3:d |
Designates a decimal number. |
|
4:o |
Designates an octal integer. |
Examples in DEC Mode
Note: Mode can be set to DEC, BIN, OCT, or HEX. See the Mode section.
|
d 8 Hex |
- 127 % 1 < |
|
|
h 8 Bin |
- % ¬ % ¬ % " 1 % 2 < |
|
|
b 8 Oct |
- 10000000 % " 2 % 4 < |
|
|
o 8 Dec |
# < < |
|
Boolean Logic
% ! displays the LOGIC menu, which lets you perform boolean logic.
|
1:and |
Bitwise AND of two integers |
|
2:or |
Bitwise OR of two integers |
|
3:xor |
Bitwise XOR of two integers |
|
4:xnor |
Bitwise XNOR of two integers |
|
5:not( |
Logical NOT of a number |
|
6:2’s( |
2’s complement of a number |
|
7:nand |
Bitwise NAND of two integers |
Examples
|
BIN mode: and, or |
- q $ $ $ $ " " < 1111 % ! 1 1010 < 1111 % ! 2 1010 < |
|
|
BIN mode: xor, xnor |
- 11111 % ! 3 10101 < 11111 % ! 4 10101 < |
|
|
HEX mode: not, 2’s |
- q $ $ $ $ " < % ! 6 % ¬ % ¬ ) < % ! 5 % i ) < |
|
|
DEC mode: nand |
- q $ $ $ $ < 192 % ! 7 48 < |
|