beautypg.com

Selecting a number base, Arithmetic operations, Bitwise operations – Casio ClassPad II fx-CP400 User Manual

Page 58

background image

Chapter 2: Main Application

  58

Selecting a Number Base

Specifying a default number base in the Main application will apply to the current line (expression/result pair),
and to all subsequent lines until you change the default number base setting.

u To select the number base for the line where the cursor is located

1. Tap the down arrow button next to the < button.

2. Tap the button that corresponds to the number base you want to use:

1 (binary), 2 (octal), 3 (decimal), 4 (hexadecimal).
• The currently selected number base is indicated in the status bar.

3. Execute the calculation.

Important!

• A line for which a number base is not specified is called a “normal calculation line”. To return a line to a

normal calculation line, tap < in step 2 of the above procedure.

• Calculation results produced by a line for which a number base is specified are followed by one of the suffixes

listed below, to indicate its number system.

Number System

Binary

Octal

Decimal

Hexadecimal

Suffix

b

o

d

h

u To specify a number base for an input value

You can input the following suffixes to specify the number base of a value as you input it: [b] (binary), [o] (octal),
[d] (decimal), and [h] (hexadecimal). You can specify a number base for an input value only when a default
number base (besides normal) is selected

Arithmetic Operations

You can use the following operators when performing binary, octal, decimal and hexadecimal values: +, −, ×, ÷,
^. You can also use parenthetical expressions.

0229

To calculate 10111

2

+ 11010

2

0230

To calculate (11

8

+ 7

8

)

2

0231

Perform the calculation 123

10

+ 1010

2

so it produces a hexadecimal result

Bitwise Operations

The logical operators (and, or, xor, not) can be used in calculations.

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).

0232

Calculation

examples