Post Reply 
4-level stack manipulation on 12c
03-04-2015, 01:31 PM (This post was last modified: 03-04-2015 02:15 PM by Don Shepherd.)
Post: #22
RE: 4-level stack manipulation on 12c
I guess I should document the reason that I wanted to get 5, 17, 5, and 17 on the stack in the first place. I wanted a little MOD function for my 12c and I realized if I arranged these numbers in the stack in that order, a simple \(\div\) INT \(\times\) - would give me the standard formula for MOD: 17-(int(17/5)x5). So the final 12c program is (after entering 17 in Y and 5 in X):

ENTER
ENTER
-
RDown
X<->Y
LastX
\(\div\)
INT
\(\times\)
-


Many thanks Werner.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 4-level stack manipulation on 12c - Don Shepherd - 03-04-2015 01:31 PM



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