beautypg.com

Chapter 23 character strings, String-related functions in the type sub-menu – HP 48gII User Manual

Page 758

background image

Page 23-1

Chapter 23
Character strings


Character strings are calculator objects enclosed between double quotes.
They are treated as text by the calculator. For example, the string “SINE
FUNCTION”, can be transformed into a GROB (Graphics Object), to label a
graph, or can be used as output in a program. Sets of characters typed by
the user as input to a program are treated as strings. Also, many objects in
program output are also strings.

String-related functions in the TYPE sub-menu

The TYPE sub-menu is accessible through the PRG (programming) menu, i.e.,
„°. The functions provided in the TYPE sub-menu are also shown below.


Among the functions in the TYPE menu that are useful for manipulating strings
we have:

OBJ : Converts string to the object it represents

STR: Converts an object to its string representation
TAG: Tags a quantity

DTAG: Removes the tag from a tagged quantity (de-tags)
CHR: Creates a one-character string corresponding to the number used as

argument

NUM: Returns the code for first character in a string

This manual is related to the following products: