Post Reply 
New member, simple question
10-11-2020, 09:55 PM
Post: #5
RE: New member, simple question
(10-11-2020 09:09 PM)pinkman Wrote:  Hi, there are many ways to do this, but you may consider the Prime as an Algebraic calc instead of a RPN/RPL one. The soft keys don’t behave like on the RPL HP’s calc, you can’t create custom menus with them, and there is no real “VAR” (directory) equivalent.

Here is my proposal:
Code:

EXPORT Inmm(A)
BEGIN
 RETURN CONVERT(A*1_in, 1_mm);
END;

KEY K_Minus()
BEGIN
 RETURN "Inmm()";
END;

Explanations:
EXPORT Inmm [...] defines a function.
Inmm is your function, it takes a value as an argument and returns the inches to mm conversion, using the built-in CONVERT function. Thus you can see how units can be used.

KEY K_Minus [...] assigns the function to the minus (-) key.

Usage:
1) Textbook or Algebraic mode:
Shift Help -> User mode
[-] -> the command line now shows Inmm()
10 -> the command line now shows Inmm(10)
Enter
Here you are.

2) RPN mode
10
Enter
Shift Help -> User mode
[-] -> the command line now shows Inmm()
Enter
Here you are again

In both cases instead of using a user defined key you can call your function by typing its name or by using the Catalog (Suitcase) key.

Regards,
Thibault

This may end up being a double post, but I tried this method and I couldn't get it to work with the "+/-". I ended up watching this video:
https://www.youtube.com/watch?v=0FiD48pTGqY

And then I realized that you weren't using the +/- key, but were using the actual "-" key.

So I ended up setting up a similar conversion (the MmIn conversion) to another key. It works well in RPN mode, where I can enter the value first, and then press Shift-Help and the key i assigned and it converts the number that was on the bottom of the stack. However, when I try in algebraic mode, I have to arrow left into the parenthesis before i type the value after pressing Shift-Home-(assigned key). Am I missing something - or is there a way for the program to have the cursor placed between the parenthesis to avoid the arrow left?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
New member, simple question - spiff72 - 10-11-2020, 06:06 PM
RE: New member, simple question - pinkman - 10-11-2020, 09:09 PM
RE: New member, simple question - spiff72 - 10-11-2020, 09:23 PM
RE: New member, simple question - spiff72 - 10-11-2020 09:55 PM
RE: New member, simple question - pinkman - 10-11-2020, 09:18 PM
RE: New member, simple question - pinkman - 10-12-2020, 10:18 PM
RE: New member, simple question - spiff72 - 10-12-2020, 10:55 PM



User(s) browsing this thread: 1 Guest(s)