In programing the 16C in DECIMAL mode, is there any workaround to obtain either the INT or the FRAC function?
tm
HP16C Programing


« Next Oldest  Next Newest »

▼
04052005, 02:54 PM
In programing the 16C in DECIMAL mode, is there any workaround to obtain either the INT or the FRAC function? tm ▼
04052005, 05:18 PM
Hello, Trent; back to some years ago, I remembered Nenad Vulic gave us a brilliant solution for this matter. Follow this thread and you'll see a very good approach from him. Best regards. Luiz (Brazil) ▼
04052005, 07:45 PM
Luiz, Vulic's program works! Thank you so much. tm ▼
04062005, 02:03 PM
If you can afford the program storage and the convenience of sign preservation is helpful, you could add a few steps to Vulic's program: LBL AUnfortunately this solution won't work on my simulator because I'm using the IEEE FPU. The design of my BCD FP simulator is well advanced so this limitation will go away in the future. Cameron
04062005, 02:09 PM
Thanks for the link, Luiz. I'd missed that thread the first time 'round. Cameron
04052005, 06:13 PM
INT: f RR f RL FRAC: ENTER f RR f RL  (If you want INT to work with negative arguments, change it to this: ENTER g ABS / g LSTx g ABS f RR f RL * )
Regards, Gerson ▼
04052005, 07:48 PM
Gerson, Your keystrokes don't seen to work on by machine. tm ▼
04052005, 08:27 PM
Thanks for the feedback. I've tested it on Emmet Gray's WRPN (HP16C Simulator). Maybe that's not an exact simulator. In fact, on another simulator http://www.flounder.com/hp16c.htm rotation instructions don't seem to work in float mode, what I suppose is the behavior of the real 16C. Sorry. Gerson.
Edited: 5 Apr 2005, 8:50 p.m. ▼
04062005, 03:20 AM
Hi Gerson, guys; Except for the four arithmetic basic ones (+, , × and ÷), the only arithmetic functions that work in floating point mode (actual HP16C) are square root and reciprocal (1/x). Also, number entry, stack manipulation and programming work as well. All of the integernumber related functions (bit manipulation, boolean operators, doubleprecision, etc.) are disabled in floatingpoint mode. If I am not worng, the only function disabled in integer mode operation is the reciprocal. Cheers.
Luiz (Brazil) Edited: 6 Apr 2005, 6:15 a.m. 
Possibly Related Threads...  
Thread  Author  Replies  Views  Last Post  
Bought a 16C to compensate a little  Eelco Rouw  23  5,796 
12072013, 01:26 PM Last Post: Eelco Rouw 

HP PRIME  APP Programing question  dg1969  2  992 
10272013, 10:23 AM Last Post: dg1969 

Shiny new 16C!  Keith Midson  7  1,913 
10272013, 02:22 AM Last Post: Keith Midson 

Joys of eBay: HP32S, HP32SII, HP42S, HP16C, ...  Sasu Mattila  7  1,895 
09232013, 04:39 PM Last Post: Julián Miranda (Spain) 

HP16C simulator  fhub  12  2,720 
06302013, 10:14 PM Last Post: Robert Prosperi 

Program for HP16c...  Leonid  9  2,184 
06072013, 08:51 PM Last Post: David Hayden 

HP 11C/12C/15C/16C case  Philippe Cairic  4  1,629 
11062012, 06:04 PM Last Post: Matt Agajanian 

Understanding HP16C integer division  Jimi  18  3,922 
10162012, 09:13 PM Last Post: Eddie W. Shore 

Hack a 15Cle into a 16C?  David Griffith  20  3,877 
12232011, 07:00 AM Last Post: robert rozee 

has 16C memory increased?  designnut  4  1,313 
09062011, 05:32 PM Last Post: uhmgawa 