Post Reply 
HP-71B Software for navigation
09-01-2019, 08:54 PM
Post: #30
RE: HP-71B Software for navigation
(09-01-2019 02:19 PM)J-F Garnier Wrote:  A simple solution: replace STR$(x) with this user function FNS$(x):
Code:
DEF FNS$(X)=("0"&STR$(X))[1+(X>=10)]

J-F

Elegant!

I saw Erwin's question this morning, but no time to reply, I was going to look thru some options to offer later today, but it would not have been as nice as this. I really like the [1+(X>=10)] sub-string use. A perfect example of the rich and powerful BASIC in the 71B.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP-71B Software for navigation - Erwin - 02-05-2019, 05:49 PM
RE: HP-71B Software for navigation - Erwin - 04-11-2019, 08:43 PM
RE: HP-71B Software for navigation - Erwin - 04-12-2019, 11:36 AM
RE: HP-71B Software for navigation - Erwin - 04-21-2019, 02:32 PM
RE: HP-71B Software for navigation - Erwin - 04-21-2019, 03:32 PM
RE: HP-71B Software for navigation - Erwin - 04-21-2019, 03:43 PM
RE: HP-71B Software for navigation - Erwin - 04-22-2019, 05:53 AM
RE: HP-71B Software for navigation - Erwin - 04-22-2019, 02:31 PM
RE: HP-71B Software for navigation - Erwin - 05-03-2019, 03:57 PM
RE: HP-71B Software for navigation - Erwin - 05-10-2019, 11:31 AM
RE: HP-71B Software for navigation - Erwin - 05-12-2019, 06:33 PM
RE: HP-71B Software for navigation - Erwin - 05-10-2019, 02:10 PM
RE: HP-71B Software for navigation - Erwin - 07-17-2019, 08:10 PM
RE: HP-71B Software for navigation - Erwin - 07-19-2019, 04:26 PM
RE: HP-71B Software for navigation - Erwin - 07-20-2019, 04:59 AM
RE: HP-71B Software for navigation - Erwin - 08-11-2019, 11:08 AM
RE: HP-71B Software for navigation - Erwin - 08-11-2019, 04:44 PM
RE: HP-71B Software for navigation - Erwin - 09-01-2019, 11:41 AM
RE: HP-71B Software for navigation - Erwin - 09-01-2019, 04:42 PM
RE: HP-71B Software for navigation - rprosperi - 09-01-2019 08:54 PM



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