Download Print this page

Casio FP-200 Instruction Manual page 109

Handy personal computer
Hide thumbs Also See for FP-200:

Advertisement

[.~--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CON
VERSION BETWEEN BINARY,
OCTAL, DECIMAL AND HEXADECIMAL
f
;,l•$1tiui•JTIJtttt)
This program permits conversion bet ween binary,
octal, decimal, and hexadecimal numbers.
Binary notation has been increasingly used in
machine
languages,
etc.
Converting
binary
numbers into decimal, octal, or hexadecimal
numbers is not so simple. This program makes
such conversions and easy task.
• •Mtii,1·1
1
i•
When the program is stared, it displays and explanatory message.
Press any key on the keyboard and thl' program prompts for data input. Thus,
B)
Binary
0)
Octal
D)
Decimal
H)
Hexadecimal
Specify B, 0, D, or H for the data to be input.
The program then asks for the value of the input data. Input the number. Pressing the
'..J
key causes the input number and converted values to be displayed on the screen.
For example, when you select B {binary), the program displays 'Binary to
D/0/H.' ·
Input a binary number and the program displays the binary number, together wlth its
octal, decimal, and hexadecimal equivalents.
Pressing the
:...J.
key causes a return to the beginning of the program.
Any positive integer from
Oto 65535 can be converted by this program. Hence, a valid
number should not exceed the number of digits represented by the number of X's in
the program. Inputting data beyond the applicable range causes a return to the begin-
ning of the program (prompt for dat:1 input). Using an invalid number (e.g., anything
excert
O
or
1
in binary numbers, 8 and
9
in octal numbers, anything except
0-9, A-F
in hexadecimal numbers) also causes a return to the beginning of the program.
To terminate the program, press the BREAK key.
/12
1 #J
1
11i·@t·Ut>H,¥iM·l!ifflB·MH·lttUV
Convert a binary
nurnt)er
to
oCtdl.
deCHnal, and he)(ildecimal
nunitwrs
Input 1011 (binary numberl
Display 1011 (binary number!
Display 13 (octal number)
D,sp!Jy 11
ldccimaf
numllt'rl
8in~r·y to 0/U/H •
[1
i
n a r·
y d
at a
<XXXXXXXXXXXXXXXXl
1(11
J.
E~ i
11 :
1
(1
1 l
Uct: l '::
D,~c : 1 1
I Ip:·:
ri

Advertisement

loading