Selecting a base mode in a program, Numbers entered in program lines – HP 32SII User Manual
Page 186
12–24 Simple Programming
File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm
Selecting a Base Mode in a Program
Insert a BIN, OCT, or HEX instruction into the beginning of the program. You
should usually include a DEC instruction at the end of the program so that the
calculator's setting will revert, to Decimal mode when the program is done.
An instruction in a program to change the base mode will determine bow
input is interpreted and how output looks during and after program execution,
but it does not affect the program lines as you enter them.
Equation evaluation, SOLVE, and
∫
FN automatically set Decimal mode.
Numbers Entered in Program Lines
Before starting program entry, set the base mode. The current setting for the
base mode determines the base of the numbers that are entered into program
lines. The display of these numbers changes when you change the base
mode.
Program line numbers always appear in base 10.
An annunciator tells you which base is the current setting. Compare the
program lines below in the left and right columns. All non–decimal numbers
are right justified in the calculator's display. Notice how the number 13
appears as "D" in Hexadecimal mode.
Decimal mode set:
Hexadecimal mode set:
:
:
:
:
PRGM
%
PRGM
PRGM
HEX
%
PRGM
HEX
:
:
:
: