Post Reply 
[HP35s] Fastest way to increment a variable
04-30-2019, 01:26 PM (This post was last modified: 04-30-2019 01:29 PM by fred_76.)
Post: #8
RE: [HP35s] Fastest way to increment a variable
(04-29-2019 06:18 PM)Albert Chan Wrote:  
(04-29-2019 03:13 PM)fred_76 Wrote:  The unexpected and quite fast one :
Code:

RCL V
NOT
+/-
STO V
=> only takes 22 ms (1.7x faster) but 4 lines of code, and only works with integers

What range of integers until above not work anymore ? Some 2^n powers ?

On the HP35s, it works until you overflow the precision of 12 digits, ie within the range of :
-999 999 999 999 ; +999 999 999 999
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HP35s] Fastest way to increment a variable - fred_76 - 04-30-2019 01:26 PM



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