EasyManuals Logo
Home>HP>Calculator>50G

HP 50G User Manual

HP 50G
887 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 #680 background imageLoading...
Page #680 background image
Page 21-33
commands “Operation cancelled” MSGBOX will show a message box
indicating that the operation was cancelled.
Identifying output in programs
The simplest way to identify numerical program output is to “tag” the program
results. A tag is simply a string attached to a number, or to any object. The
string will be the name associated with the object. For example, earlier on,
when debugging programs INPTa (or INPT1) and INPT2, we obtained as
results tagged numerical output such as :a:35.
Tagging a numerical result
To tag a numerical result you need to place the number in stack level 2 and the
tagging string in stack level 2, then use the TAG function („ ° @)TYPE@ @
TAG) For example, to produce the tagged result B:5., use:
5`‚Õ~b„ ° @)TYPE@ @ TAG
Decomposing a tagged numerical result into a number and a tag
To decompose a tagged result into its numerical value and its tag, simply use
function OBJ („°@)TYPE@ @OBJ @). The result of decomposing a tagged
number with OBJ is to place the numerical value in stack level 2 and the tag
in stack level 1. If you are interested in using the numerical value only, then
you will drop the tag by using the backspace key ƒ. For example,
decomposing the tagged quantity B:5 (see above), will produce:
“De-tagging” a tagged quantity
“De-taggingmeans to extract the object out of a tagged quantity. This
function is accessed through the keystroke combination: „ ° @)TYPE@ L
@DTAG. For example, given the tagged quantity a:2, DTAG returns the
numerical value 2.

Table of Contents

Other manuals for HP 50G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 50G and is the answer not in the manual?

HP 50G Specifications

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

Related product manuals