HP (Hewlett-Packard) HP 33s Calculator User Manual


 
13–16 Programming Techniques
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
Use the above program to see the different forms of fraction display:
Keys:
(In ALG mode)
Display: Description:
t
F

value
Executes label F; prompts for a
fractional number (
V).
2.53
¥

value
Stores 2.53 in V; prompts for
denominator (D).
16
¥


Stores 16 as the /c value.
Displays message, then the
decimal number.
¥



Message indicates the fraction
format (denominator is no
g
reater
than 16), then shows the fraction.
indicates that the numerator is
"a little below" 8.
¥



Message indicates the fraction
format (denominator is factor of
16), then shows the fraction.
¥



Message indicates the fraction
format (denominator is 16), then
shows the fraction.
¥
Å
º
·
{

}
Ë
0

Stops the pro
g
ram and clears fla
g
10
Loops
Branching backwards — that is, to a label in a previous line — makes it possible
to execute part of a program more than once. This is called
looping.










