Bitwise Operations; Using The Baseconvert Function (Number System Transform) - Casio ClassPad 330 User Manual

Classpad os version 3.03
Hide thumbs Also See for ClassPad 330:
Table of Contents

Advertisement

Bitwise Operations
The logical operators listed below can be used in calculations.
Operator
and
or
xor
not
Examples 1, 2, and 3 use Bin (binary) as the number system. Example 4 uses Hex
(hexadecimal).
Example 1: 1010
2
0babapandpbbaaw
Example 2: 1011
2
0babbporpbbabaw
Example 3: 1010
2
0babapxorpbbaaw
Example 4: not (FFFF
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:
Specifying a Number Base
Returns the result of a bitwise product.
Returns the result of a bitwise sum.
Returns the result of a bitwise exclusive logical sum.
Returns the result of a complement (bitwise inversion).
and 1100
= 1000
2
2
or 11010
= 11011
2
2
xor 1100
= 110
2
2
) = FFFF0000
16
16
2-7-5
Description
20060301

Advertisement

Table of Contents
loading

Table of Contents