Post Reply 
String Functions
12-04-2014, 12:23 AM (This post was last modified: 12-04-2014 12:33 AM by Snorre.)
Post: #1
String Functions
Hello,

First: many thanks to the HP team for the update (I love it beeing finally able to enter commented or even incomplete CAS programs).

I know, the Prime is not intended for string processing.
But it would be really nice if the string functions LEFT, MID and RIGHT would be fixed eventually (it doesn't seem like a big deal).
I'd prefer LEFT("hello",0) or RIGHT("hello",0) or MID("hello",6,1) to return an empty string. Especially MID("hello",3,-1) should behave more friendly.

Greetings.
Find all posts by this user
Quote this message in a reply
12-04-2014, 01:25 AM
Post: #2
RE: String Functions
(12-04-2014 12:23 AM)Snorre Wrote:  Hello,

First: many thanks to the HP team for the update (I love it beeing finally able to enter commented or even incomplete CAS programs).

I know, the Prime is not intended for string processing.
But it would be really nice if the string functions LEFT, MID and RIGHT would be fixed eventually (it doesn't seem like a big deal).
I'd prefer LEFT("hello",0) or RIGHT("hello",0) or MID("hello",6,1) to return an empty string. Especially MID("hello",3,-1) should behave more friendly.

Greetings.

I agree on all accounts. In general, the string operations should return a null string if the arguments do not result in a proper substring. The MID("hello",3,-1) bug is really bad, though. On my calculator, it resulted in a crash that required a reset via the pinhole in the back.

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




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