Post Reply 
Store and reuse intermediate variable
12-07-2022, 08:35 PM
Post: #7
RE: Store and reuse intermediate variable
Thank you BruceH!

Yes, once a local var is declared, you can update its value with the same syntax than with global vars.

Look at line 5: adding a 0 to be stored in local var R
Look at line 6: R is appended

Code:

« "Ins C t A " {
":C:
:t:
:A:" { 1 0
} V } INPUT OBJ→ 0
→ C t A R
  « 'C*(t/100/n)/(1
-(1+t/100/n)^(-n*A)
)' →NUM 'R' STO
'R*
A*12' →NUM "M" →TAG
  »
»

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Store and reuse intermediate variable - pinkman - 12-07-2022 08:35 PM



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