Post Reply 
24-MAR-2021 Simple Units
03-24-2021, 06:30 PM (This post was last modified: 03-24-2021 06:34 PM by Han.)
Post: #8
RE: 23-MAR-2021 Simple Units
(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.

Graph 3D | QPI | SolveSys
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)