HP Forums
Results in Strings on the HP 42S Question - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Results in Strings on the HP 42S Question (/thread-6517.html)



Results in Strings on the HP 42S Question - Eddie W. Shore - 07-08-2016 12:20 AM

Say I have a numerical result stored in the variable X. (For example X = 1.45). I want to display "The amount is 1.45".

How do I concert X into a string and then attach it to "The amount is "? Thanks in advance.


RE: Results in Strings on the HP 42S Question - rprosperi - 07-08-2016 02:20 AM

(07-08-2016 12:20 AM)Eddie W. Shore Wrote:  Say I have a numerical result stored in the variable X. (For example X = 1.45). I want to display "The amount is 1.45".

How do I concert X into a string and then attach it to "The amount is "? Thanks in advance.

Put "The amount is " into Alpha, then
ARCL ST X, which appends STack level X into Alpha.