
Specifying a Number Base
Bitwise OperationsThe logical operators listed below can be used in calculations.
Operator | Description |
|
|
and | Returns the result of a bitwise product. |
|
|
or | Returns the result of a bitwise sum. |
|
|
xor | Returns the result of a bitwise exclusive logical sum. |
|
|
not | Returns the result of a complement (bitwise inversion). |
|
|
Examples 1, 2, and 3 use Bin (binary) as the number system. Example 4 uses Hex (hexadecimal).
Example 1: 10102 and 11002 = 10002
0babapandpbbaaw
Example 2: 10112 or 110102 = 110112
0babbporpbbabaw
Example 3: 10102 xor 11002 = 1102
0babapxorpbbaaw
Example 4: not (FFFF16) = FFFF000016
0not(ffffw
Using the baseConvert Function (Number System Transform)The baseConvert function lets you convert a number in one base (number system) to its equivalent in another base.
Important!
•The baseConvert function works for positive integers only.
•The baseConvert function cannot be used in a line for which a particular number base is specified. It can be used in a normal calculation line only.
Syntax: baseConvert (Number, Current base, Expected base)
•Number must be a positive integer consisting of digits 0 to 9 and/or A to F.
•The current base and expected base can be any whole number from 2 to 16.
Examples:
20060301