HP Forums
Problem with INPUT()command in RPN mode - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Problem with INPUT()command in RPN mode (/thread-3836.html)



Problem with INPUT()command in RPN mode - wawa - 05-14-2015 01:27 PM

Hello

I have a problem using the INPUT command in RPN mode : In a simple program like this :
Quote:EXPORT TEST()
BEGIN
INPUT({A,B});
END;

When I try to enter a negative number for A or B, Something strange happens : Single quotes are added in the edit line around my number and when I press OK, I have an Invalid Entry error. If I remove single quotes around my number, then it is OK. With positive numbers, no problem.

When I am in textbook or algebraic mode, I have no such problem.

I use the latest firmwrare (05/2015) but the problem was here also with the previous ones.


RE: Problem with INPUT()command in RPN mode - Tim Wessman - 05-14-2015 06:09 PM

(05-14-2015 01:27 PM)wawa Wrote:  Im in textbook or algebraic mode, I have no such problem.

I use the latest firmwrare (05/2015) but the problem was here also with the previous ones.

Hello,

I think the issue is that you are using the minus operator key, instead of the negative key. It detects that you are typing an equation (similar to what you'd see if you typed [^]) and adds in the algebraic quote marks to avoid evaluation of your keypress. Unless I am remembering wron, the exact same thing happens on the 50g when you are in a dialog and press the subtraction key. You get '-' instead of just the -.

Try using the [+/-] key next to the ENTER key. Does that work for you?


RE: Problem with INPUT()command in RPN mode - John Colvin - 05-14-2015 08:31 PM

The problem with the INPUT command not accepting negative numbers also occurs with the +/- key. Hopefully, this will be fixed in the next firmware release.


RE: Problem with INPUT()command in RPN mode - toml_12953 - 05-15-2015 12:25 AM

(05-14-2015 01:27 PM)wawa Wrote:  Hello

I have a problem using the INPUT command in RPN mode : In a simple program like this :
Quote:EXPORT TEST()
BEGIN
INPUT({A,B});
END;

When I try to enter a negative number for A or B, Something strange happens : Single quotes are added in the edit line around my number and when I press OK, I have an Invalid Entry error. If I remove single quotes around my number, then it is OK. With positive numbers, no problem.

When I am in textbook or algebraic mode, I have no such problem.

I use the latest firmwrare (05/2015) but the problem was here also with the previous ones.
Even when I enter a positive number, I get the single quotes!

Tom L


RE: Problem with INPUT()command in RPN mode - wawa - 05-15-2015 07:20 AM

Yes but with positive numbers, they make no harm. Ideally, there would be no quotes automatically added. In this case, everything works well.