Post Reply 
Optional Parameter in User Function.
06-14-2021, 09:40 PM (This post was last modified: 06-14-2021 09:46 PM by Albert Chan.)
Post: #4
RE: Optional Parameter in User Function.
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Optional Parameter in User Function. - Albert Chan - 06-14-2021 09:40 PM



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