Post Reply 
what is a string?
12-12-2013, 02:51 PM
Post: #6
RE: what is a string?
(12-11-2013 10:02 PM)Alberto Candel Wrote:  I was thinking of doing compositions of programs. nib() was juts an example, it could be taking a string of 01 and converting that into a string of other characters, for example, replacing 0 by 01 and 1 by 1.

If the input to nib() was the output to bin(), I was not sure how to handle the quotation marks in the output to bin().

But doing as you say, writing RETURN(EXPR(B)) works for me. Thank you.

It may also be worthwhile to consider leaving the result as a string since the HP Prime has the ability to work with strings (even substitute/replace characters or substrings). Press the [Help] key, then press the [Tree] menu item. Expand the Program Catalogue within the help tree, and do likewise for Commands Menu. You should see a list of string commands.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
what is a string? - Alberto Candel - 12-11-2013, 06:26 PM
RE: what is a string? - Han - 12-11-2013, 06:46 PM
RE: what is a string? - Alberto Candel - 12-11-2013, 07:11 PM
RE: what is a string? - Han - 12-11-2013, 07:29 PM
RE: what is a string? - Alberto Candel - 12-11-2013, 10:02 PM
RE: what is a string? - Han - 12-12-2013 02:51 PM
RE: what is a string? - Alberto Candel - 12-13-2013, 08:27 AM
RE: what is a string? - Han - 12-13-2013, 02:33 PM



User(s) browsing this thread: 1 Guest(s)