Post Reply 
Optional Parameter in User Function.
06-14-2021, 09:56 PM (This post was last modified: 06-14-2021 09:56 PM by matalog.)
Post: #5
RE: Optional Parameter in User Function.
(06-14-2021 09:40 PM)Albert Chan Wrote:  We could use complex numbers ... (just think of i as inches)

Code:
EXPORT F2M(z)
BEGIN
  ROUND((re(z)*12+im(z))*0.0254, 2);
END;

> F2M(6+2i)       → 1.88
> F2M(10)          → 3.05

That allows what I am asking for, but it makes it quite a bit less convenient to enter feet and inches, it now requires 6 + 2 (shift) 2 (5 keys). Before it just required typing 6 , 2 (just 3 keys).

I am grateful for your input, but this is about increasing convenience, and reducing the total amount of keys required to press, because of how often the function is used, therefore, it isn't really a viable solution.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Optional Parameter in User Function. - matalog - 06-14-2021 09:56 PM



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