HP Forums

Full Version: Program using directly the stack
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just received my HP Prime and I try to do a very simple program using the result of a calculation, displayed on the first line of the stack.
How to do it?
My Example:
After a few manipulations, I have the result 125.
I would like to apply the command "R->B" to easily convert and display this value in hexadecimal.
This to avoid to tip: ALPHA R SHIFT 9 -> ALPHA B ENTER

Thanks to help me.
(05-02-2020 07:22 AM)SimonP Wrote: [ -> ]I would like to apply the command "R->B" to easily convert and display this value in hexadecimal.
This to avoid to tip: ALPHA R SHIFT 9 -> ALPHA B ENTER

First time only: [Toolbox] (Catalog) [9] [up-cursor] [Enter]
Afterwards: [Toolbox] [Enter]

Alternative: Assign R→B to a USER mode key.
Another alternative :

Put this in a program:

Code:

KEY K_Log() // or any key you don’t often use
BEGIN
 RETURN STRING(R→B(Ans));
END;

Then, turning user mode always on (Shift-Help-Shift-Help) will let you convert the Ans value at any time.

Notice that your question is a bit RPL-oriented. We’re all here fans of RPL, but using the Prime will force you to change of paradigm.
Reference URL's