HP Forums
42S Alpha String 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: 42S Alpha String Question (/thread-15192.html)



42S Alpha String Question - Gamo - 06-15-2020 05:23 AM

I'm new to the 42S program style.

I try to create the message that shown answer

On display as [ MARKUP=45 % ]

To show MARKUP=45
The code is
STO "MARKUP"
VIEW "MARKUP"

How to put % after the number?

Thank You
Gamo


RE: 42S Alpha String Question - Werner - 06-15-2020 07:07 AM

You have to do it all with strings & AVIEW (markup in X):
Code:
 "MARKUP = "
 AIP
 +"%"
 AVIEW
If you want to show decimals, use ARCL ST X i.o. AIP

Werner


RE: 42S Alpha String Question - Gamo - 06-15-2020 07:54 AM

Werner Thank You

I try

"Markup="
ARCL ST X
⊢" %"
AVIEW

This work out really good and display shown

[ MARKUP=55.55 % ]


Thanks

Gamo