HP Forums

Full Version: Number format Input instruction
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have a question about the value presentation (number format) of the input command. It's for me difficult to explain in English, but I will try it.
In home settings I select number format to "engineering".
When I run a program with an input command all values are presented in "standard", not in the selected "engineering" format!!
After inputting a value this value is presented in "engineering".
After running this program for the second time all already inputted values are again presented in "standard"!!
(Local vars declared on the first program row, before BEGIN).
What do I wrong? Or is it a "bug"?

Maybe a question for Tim Wessman?

BTW(1), I use the input instruction as a kind of a little "Scada" system of presentation of both inputted and calculated variables, within a do while. After OK the program's runs again (input returns a "1") after Cancel the program stops (input returns a "0")
The advantage is that you have a direct overview of the inputted and calculated results.

BTW(2), I love my Prime, very fine calculator!
See my previous question.
Till now a have no answer.
Was my English so bat? Was it not understandably? Or not interesting enough?

Tim Wessman,
I think there is something wrong with the re-reading of the values of the input command.
Re-reading of the values are in "standard" not in the chosen format at Home.
Please Tim (or others) can you give me an answer?
It is not meant negative, positive only, for the improvement of the calculator's software.
Please check this with a simple "input" program.
Hello Dirk,

Maybe you can give a program example showing the issue you're reporting.
I've done some tests with a very simple program:
EXPORT inputformat()
And I confirm that the number in the INPUT field is displayed in Standard format even if I select the Engineering format in the Home Settings. However there is one thing I can't replicate:
Quote:After inputting a value this value is presented in "engineering".
(06-29-2015 03:35 PM)Dirk.nl Wrote: [ -> ]I think there is something wrong with the re-reading of the values of the input command.

The internals of the dialog box were originally designed to only support "real" numbers. In order to support input of things like complexes, matrices, etc we had to do a not so great workaround that resulted in this side effect. Right now, there is no way to change that behavior. It will work as you want in some future update when we can remove the underlying limitation. I cannot provide details as to when that will be though.

Thanks for the report though! I've filed an internal issue to make sure that we don't overlook checking this to make sure it is resolved.
Didier and Tim, THANKS for your replays.
Tim, I think you know my problem. I hope you (HP software engineers!) will update this in the next update(s).
Didier, what I meant, if you select at Home settings "engineering" mode the value will be presented as engineering after inputting the value. So entering a value, for instance 1 <enter> it will be presented as 1.000E1. That is of course correct. But running the second time it will be presented as 1 (not as 1.000e1)
I shall try to include a simple program tomorrow (Dutch time!) I don't know how to that yet.
It's for me some times difficult to explain in English, sorry fore that!
I hope you both understand it.
Hi Tim and Didier,
Quote:Maybe you can give a program example showing the issue you're reporting.
See my next very simple prgram.
For this prgram "engineering" format is not necessary, just used as an example.


LOCAL Old, New, Chg,
      Total, Part, Proc;

EXPORT Percent
LOCAL C1,C2,C3,C4,C5,C6;
T1:=HFormat; T2:=HDigits;
HFormat:=3;  HDigits:=4;


 {"Old: ","New: ","%Diff: ",
  "Total: ","Part: ","%Total: ",

   HFormat:=T1; HDigits:=T2;



IF C3>0 AND Old≠0 THEN

IF C4>0 AND Proc≠0 THEN


IF C6>0 AND Total≠0 THEN


Run this program.
All values are zero -> "standard" format presentation, not correct.
Enter the first value, for instance 1 <OK> -> display = 1.0000E0, correct.
Enter the second value, for instance 2 <OK> -> display = 2.0000E0, correct.
Check the checkbox after the third value.
Select <OK> to calculate.
After that all values are again presentated in "standard" format, that's not correct.
Must be "engineering" format.
Close the program with <Cancel>.
Reference URL's