Sharp EL-5230 User Manual

Page 94

Advertising
background image

92

Program code

Key operations

Y¬OCT

; Y @ g e

Print”OCTAL

i 1 @ a OCTAL ;
e

Print Y

i 0 ; Y e

Wait

i 3 e

Y¬HEX

; Y @ h e

Print”HEXADECIMAL

i 1 @ a HEXADECIMAL
; e

Print Y

i 0 ; Y e

Running the program

4.

Press j to return to the PROG mode menu.

5.

Press 0, select the program ‘NBASE’ and press e.

• The program prompts you to enter a decimal number and then displays

it in binary format.

• Press any key to display the number in pental format, then press any

key to see it in octal format, and again press any key to see it in
hexadecimal format.

• Be careful when using the Wait command in NBASE program mode.

Numbers followed by Wait are processed according to the current
number base, binary, pental, octal, decimal or hexadecimal.
To specify the wait time in decimal format, define a variable (e.g., T = 5)
for the wait time beforehand and use it in the Wait command (i.e., Wait
T).

Chapter 8: Application Examples

Advertising
This manual is related to the following products: