Post Reply 
(RPL) percentage function % not preserving stack level 2
01-06-2019, 08:07 PM
Post: #15
RE: (RPL) percentage function % not preserving stack level 2
(01-06-2019 10:48 AM)Joe Horn Wrote:  cdmackay: No, that's not correct. During digit entry, one DUP in RPL has the same effect as a double ENTER in RPL, and has a different effect than a single ENTER, as can be seen in these RPL keystroke sequences:

CLEAR 5 DUP 6 % + --> 5.3 alone on stack
CLEAR 5 ENTER ENTER 6 % + --> 5.3 alone on stack [One DUP has same effect as two ENTERs]
CLEAR 5 ENTER 6 % + --> Error: Too Few Arguments [One ENTER fails]

Reason: RPL's ENTER *either* terminates numeric entry *or* performs a DUP, but never both at the same time, unlike the ENTER key in 4-level-stack RPN machines. Also, RPL does not have any "stack lift disable" feature. Hence the necessary differences shown above.

yup, got it, thanks! Although I think you meant to quote RMollov not me Smile

thanks for clarifying anyway. I find it fascinating how such a simple question opens up some interesting design choices and helps me to understand the way the system works as a whole (well, a bit better, at least).

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot/C47
Casio, Rockwell 18R
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 - cdmackay - 01-06-2019 08:07 PM



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