HP 49g Graphing Calculator User Manual
Page 198
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

3. Enter the percentage calculation.
0® ®M)A©(I® (i®TOTL{$Pi)® ® 100
« ^ A
« ( A / T O T L ) * 1 0 0
4. Store the results into the global variable “RESLTl”. Note that after the
calculation, you need to insert a; to delimit the algebraic commands
(hold down
0
and press
« ^ A
« ( A / T O T L ) * 1 0 0 ^ R E S L T l ;
5. Add “%” and save the resulting string back into RESLTl. Note the
following;
® To insert the % symbol, use the Characters tool
(0
(CHARS))
or press
When you add a string to a number, the resulting value is a string.
You do not need to convert the nimiber.
RESLTl
« ^ A
« ( A / T O T L ) * 1 0 0
k
R E S L T l ;
R E S L T 1 + " % "
k
R E S L T l
Before you run this program, create a global variable named “TOTL” and
assign a number to it.
Page 10-12
Introduction to programming