EasyManuals Logo
Home>HP>Calculator>48GII

HP 48GII User Manual

HP 48GII
653 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #74 background imageLoading...
Page #74 background image
1-48 RPL Programming
Labeling and Displaying Output as Strings
To label and display a result as a string:
1. Put the output object on the stack.
2. Enter the "STR command (PRG TYPE menu).
3. Enter a string to label the object (with II delimiters).
4. Enter the SWAP + commands to swap and concatenate the strings.
5. Enter a number specifying the line to display the string on.
6. Enter the DISP command (PRG OUT menu).
!"!!object!#D:K!label!DYB2!'!line!46D2!!1!
DISP displays a string without its II delimiters.
Example: The following program TSTRING is identical to TINPUT, except that it converts the program
result to a string and appends a labeling string to it.
Program: Comments:
"!
Ir)@!tG!$F!%I!
f!Il$l !l%lI!f3!8h!Nh
6=25:!LS_#!
:LKDB!
#D:K!
IBj)$![!I!
DYB2!'!
OEEO4!3!46D2!V!7K<<J<!
Converts the result to a string.
Enters the labeling strings.
Swaps and adds the two strings.
Displays the resultant string, without
its delimiters, in line 1 of the display.
1
`OTSTRING
Stores the program in TSTRING.
Execute TSTRING to calculate the area of the torus with a = 1.5 and b = 1.85. The labeled answer appears in the
status area.
@·J%TSTRI%
1.5 ˜1.85 `
Pausing to Display Output
To pause to display a result:
1. Enter commands to set up the display.
2. Enter the number of seconds you want to pause.
3. Enter the WAIT command (PRG IN menu).
WAIT suspends execution for the number of seconds in level 1. You can use WAIT with DISP to display
messages during program execution — for example, to display intermediate program results. (WAIT interprets
arguments 0 and –1 differently — see "Using WAIT for Keystroke Input" on page 1-46.)

Table of Contents

Other manuals for HP 48GII

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 48GII and is the answer not in the manual?

HP 48GII Specifications

General IconGeneral
Battery typeCR2032
TypeScientific
Form factorPocket
Weight and Dimensions IconWeight and Dimensions
Weight220 g
Dimensions (WxDxH)184 x 87 x 23.5 mm

Related product manuals