Post Reply 
(RPL) percentage function % not preserving stack level 2
01-06-2019, 08:09 PM
Post: #16
RE: (RPL) percentage function % not preserving stack level 2
(01-06-2019 05:08 PM)Bill Duncan Wrote:  The following "works for me"[tm].. I have these assigned to variables in the home directory and in the CST file. Add percent, percent of total and delta percent, all preserving in what was the Y register. Simple, effective, I use them all the time on my hp-48gx..

Code:

A%  << OVER SWAP % >>
T%  << INV A% INV >>
CH%  << OVER SWAP %CH >>

CST file in the home directory has those functions (as well as others).. YMMV.

thanks Bill; I was going to add those myself, but thought I would force myself to do things the RPL way and use Ans/LASTARG where needed, as it helps me to learn.

Just for fun, I also programmed all three on my DM16, which doesn't have any. Silly, as I'm unlikely to pick it up for that Smile

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
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:09 PM



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