Example: Display Format Control - HP -15C Owner's Handbook Manual

Hide thumbs Also See for HP-15C:
Table of Contents

Advertisement

114
Section 10: The Index Register and Loop Control
Keystrokes
15 " O
V ´ A

Example: Display Format Control

The following program pauses and displays an example of • display
format for each possible decimal place. It utilizes a loop containing a s
instruction to automatically change the number of decimal places.
Keystrokes
´CLEAR M
´ b B
9
O V
´ b 0
´ • V
l V
´ ©
´ e V
t 0
| T 1
t 0
| n
Display
-15.0000
2.0000
84.0896
5.0000
64.8420
8.0000
50.0000
50.0000
nnnnn = 9. Therefore, xxx = 0 and by default yy
= 1 (yy cannot be zero).
Displays current value of nnnnn.
Value in R
I
if nnnnn  test value.
Continue loop if nnnnn > test value (0).
Tests whether value in display is greater than 0, so
loop will continue when nnnnn has reached 0 but
display still only shows 1.0.
Branch line number.
Running
program
= 3.
Loop counter = 2.
Loop counter = 1.
Loop counter = 0; program ends.
is decremented and tested. Skip a line
loop
counter

Advertisement

Table of Contents
loading

Table of Contents