beautypg.com

K negative values and bitwise operations, U negative values, U bitwise operations – Casio SERIES FX-9860G User Manual

Page 119

background image

20070201

Example 2 To input and execute 123

8

× ABC

16

, when the default number system is

decimal or hexadecimal

!m(SET UP)c2(Dec)J
A1(d~o)4(o)bcd*
2(h)ABC*

1

w

J3(DISP)2('Hex)w

k Negative Values and Bitwise Operations

Press

2(LOG) to display a menu of negation and bitwise operators.

• {Neg} ... {negation}*

2

• {Not}/{and}/{or}/{xor}/{xnor} ... {NOT}*

3

/{AND}/{OR}/{XOR}/{XNOR}*

4

u Negative Values

Example

To determine the negative of 110010

2

!m(SET UP)c4(Bin)J
A2(LOG)1(Neg)
bbaabaw

u Bitwise Operations

Example 1 To input and execute “120

16

and AD

16

!m(SET UP)c3(Hex)J
Abca2(LOG)
3(and)AD*

1

w

2-7-4

Binary, Octal, Decimal, and Hexadecimal Calculations with Integers

*

1

See page 2-7-1.

*

2

two’s complement

*

3

one’s complement (bitwise complement)

*

4

bitwise AND, bitwise OR, bitwise XOR,

bitwise XNOR

# Negative binary, octal, and hexadecimal

values are produced by taking the binary two’s
complement and then returning the result to the
original number base. With the decimal number
base, negative values are displayed with a
minus sign.