• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

I have been testing the new HP prime.  I performed the following multiplication: 12345 * 6789, the result was 83810205. Which is correct.

 

I did the same operation in a much cheaper calculator, BAII Plus-Pro. While entering the numbers it put a comma automatically, where needed... 12,345 * 6,789 = 83,810,205 ... Which is EXTREMELY more easy to read and less prompt to data entry errors.

 

HP 50G lacked that feature, which I never understood why. I'm surprised to see that HP prime seems to lack the same feature.

 

PLEASE, PLEASE... tell me the feature is hidden somewhere. Lacking this would be incomprehensible in a calculator this sophisticated. Where do I activate it???

 

PD: Yes, I know how to use engineering and scientific notation. That's not what I need.

8 REPLIES 8
HP Recommended

Hi!, jc_cfa:

 

On the HP50G, you must configure, CALCULATOR MODE, to FIX xx (0 to 11).

FIX.JPG FIX_1.JPG

 

On the HP PRIME GRAPHING CALCULATOR, it is not possible, at the moment, with the actual 5106 version, but you can ...

FIX_2.JPG

 

FIX_3.JPG FIX_4.JPG

HP Recommended

Hi, Miguel!

 

The trick works for the HP 50G, but only if I enter the number as a decimal (e.g., 1234. instead of 1234). However, in doing so I lose the advantage of working with exact integer calculations of large numbers.  In the HP prime it doesn't work at all.

HP Recommended

Hi!, jc_cfa:

 

On the HP PRIME GRAPHING CALCULATOR, it is not possible, at the moment, with the actual 5106 version.

HP Recommended

jc_cfa wrote:

I have been testing the new HP prime.  I performed the following multiplication: 12345 * 6789, the result was 83810205. Which is correct. 

I did the same operation in a much cheaper calculator, BAII Plus-Pro. While entering the numbers it put a comma automatically, where needed... 12,345 * 6,789 = 83,810,205 ... Which is EXTREMELY more easy to read and less prompt to data entry errors. 

HP 50G lacked that feature, which I never understood why. I'm surprised to see that HP prime seems to lack the same feature.

Actually, there is a good reason that the Prime and the 50g (and all high-end HP calculators for many years) don't put commas in numbers as you type them in. It's because, unlike ordinary calculators which only deal with numbers, the Prime and 50g use a command line interface, which allows ANYTHING to be typed, including lists and arrays which use commas to separate elements.  Commas are used to parse what the user typed.  For example, suppose you want to enter the list of two numbers {123456,789}, but as you type it, the calculator adds commas. You'd end up with three numbers {123,456,789}. Not good.

Solutions have been suggested, tried, and found unworkable. In general, automatic commas during the INPUT of long numbers is simply impossible with a command line interface.

However, I agree with you that OUTPUT with commas is a necessary feature.  That's why I programmed a key on my 50g to display any exact integer (of any length) with commas inserted, correctly broken into multiple lines depending on current font size (normal or mini).  And if you press the same key with a "long float" number on the stack (floating point with settable number of decimal places), it displays all of its digits, correctly screen-wrapped by font size.  This is one of the benefits of HP programmable calculators; if you want a feature, you can easily add it.  It's annoying that you have to do this for features that really should already be there, but it's nice to know that you can add them yourself, and maybe even do it better than HP might have done it.

-Joe-

Disclaimer: I don't work for HP. I'm just another HP customer, like you.

-Joe-
HP Recommended

Hi Joseph,

Thanks a lot for the explanation, very complete.  There must be a way to make it easier to input and read numbers, less prompt to errors. may be alternating colors or shades of gray. The programming approach is great. 

 

My challenge is : if a feasible solution can be accomplished using the programmng language of the calculator, shouldn't it be included as a feature, or the code included as an example in the user's manual, for the benefit of those who are not good in computer programming.

 

Thanks

HP Recommended

Hi Joseph,

 

Would you share your code?

HP Recommended

jc_cfa wrote:

Hi Joseph,

Would you share your code?


Ok, here's the program I described above.  Useful when a long integer or longfloat is on level 1; it displays it nicely formatted and screen-wrapped.

 

Important notes:  This program is for the HP 49g+/50g only.  Requires the LNViewer library freely downloadable HERE.  If you want to use its longfloat feature (longfloats are settable precision floating point numbers), then install the LongFloat library freely downloadable HERE. It also uses the SREV command from the built-in Library 256, so be sure to do 256 ATTACH before loading or typing the source code below. Once it's compiled, it'll run even if Library 256 isn't attached.

 

\<< DUP
  IF DUP TYPE 28. SAME
  THEN \->STR SREV "," 3 STRD " "
SWAP + "
" -72 FS? 28 16 IFTE STRD TAIL
SREV
  ELSE \->FNUM ZZ\<-\->F SWAP "E"
+ SWAP DIGITS 1 - + + DUP 1. 1.
SUB "." + SWAP 2. OVER SIZE SUB +
"
" -72 FS? 29 18 IFTE STRD
  END
\>>

BYTES: 244.0  #D67fh

 

Instructions: Assign it to a key. Press that key (in User mode, of course) to view any integer or longfloat on level 1, nicely formatted in string form. It DUPs the input, so you can just drop the string when you're done looking at it.

 

-Joe-

-Joe-
HP Recommended

I too have been anoyed by the homogenous digits in numbers.  I hope HP can correct it.  Commas are nice on the output.  But even if the output just inserted one or two vertical columns of white pixels might be enough to help  the eye.

The IEEE standard for formatting of numbers (for journals, etc.) is to have a space as a separator instead of a comma.

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.