Post Reply 
(RPL) percentage function % not preserving stack level 2
01-06-2019, 06:16 AM
Post: #10
RE: (RPL) percentage function % not preserving stack level 2
(01-06-2019 03:48 AM)cdmackay Wrote:  Thanks, but the point of the DUP (or double ENTER) was to preserve the first number

DUP is not double ENTER, it is just another name for a single ENTER. Not a big deal to hit it quickly twice Smile
IMHO the RPN implementation of those %-functions is better done (more consistent) in RPL. LASTARG loads both operands in the stack pushing previous result up, which is AFAIC the desired way of doing it; with RPN you have first operand in Y - visible, the second in L - invisible and result in X. [X<>Y] & [LastX] (3 keystrokes) will be needed to mimic what LASTARG achieves with 2. On the other hand I have no clue how and what for you use them, so my views may not be applicable in your case, just sharing ideas.

Cheers,
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (RPL) percentage function % not preserving stack level 2 - RMollov - 01-06-2019 06:16 AM



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