Post Reply 
24-MAR-2021 Simple Units
03-25-2021, 02:42 AM
Post: #10
RE: 24-MAR-2021 Simple Units
(03-24-2021 06:30 PM)Han Wrote:  
(03-24-2021 05:50 PM)spiff72 Wrote:  One more observation:

If I use the same arguments in the CONVERT() function, it converts correctly:
CONVERT(10_(N*m),1_(in*lbf))
I get 88.507..._in*lbf

It seems like maybe the Sto> shortcut for conversion doesn't work in this application?

Type it without the 1 in the front so that it looks like: 10_(N*m)▶_(in*lbf)

I've adjusted the code to account for non-atomic units. You can simply change the last if statement to:

Code:
if c2 then return("_("+symlist(c1,c2)+")"); else return("_"); end;

so that you don't have to encapsulate all your units in parentheses (should look nicer in the menus, too, without them). I've updated the first post to reflect these changes.

One additional question...

Is there any reason (or disadvantage) to assigning this program to the template key (the one that would normally be the blue-shift UNITS button?

So instead of:
KEY KS_Space()
use:
KEY K_Templ()

I think that this would be easier for me to remember (and one less key press to activate it). I am relatively new to the Prime (a few months in, and I came from the HP50g), and I am still getting used to things on this calculator. I REALLY miss being able to assing softkeys to a program!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
24-MAR-2021 Simple Units - Han - 03-24-2021, 02:17 AM
RE: 23-MAR-2021 Simple Units - spiff72 - 03-24-2021, 02:58 AM
RE: 23-MAR-2021 Simple Units - spiff72 - 03-24-2021, 03:48 AM
RE: 23-MAR-2021 Simple Units - Han - 03-24-2021, 04:04 AM
RE: 23-MAR-2021 Simple Units - spiff72 - 03-24-2021, 04:02 PM
RE: 23-MAR-2021 Simple Units - spiff72 - 03-24-2021, 05:39 PM
RE: 23-MAR-2021 Simple Units - spiff72 - 03-24-2021, 05:50 PM
RE: 23-MAR-2021 Simple Units - Han - 03-24-2021, 06:30 PM
RE: 24-MAR-2021 Simple Units - spiff72 - 03-25-2021, 02:33 AM
RE: 24-MAR-2021 Simple Units - spiff72 - 03-25-2021 02:42 AM
RE: 24-MAR-2021 Simple Units - Han - 03-25-2021, 03:44 AM
RE: 24-MAR-2021 Simple Units - spiff72 - 03-25-2021, 01:40 PM



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