Post Reply 
FORTH for the HP 50G
09-30-2022, 12:13 PM
Post: #7
RE: FORTH for the HP 50G
Although the result is undefined, the following will give the result you expect / seems logical and I'll update in the next version.

Code:
: .POS BASE @ /MOD ABS ?DUP IF RECURSE THEN ABS .DIGIT ;
: . .SIGN DUP IF .POS ELSE .DIGIT THEN ;
: . . SPACE ;

(09-28-2022 11:52 PM)Helix Wrote:  Very nice!
Which Forth source are you using?
How to view a list of defined words? I've tried WORDS and VLIST, without success.
I found a bug: 16384 2 * . gives --.)*(

Calculator Clique on YouTube
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
FORTH for the HP 50G - dmh - 09-28-2022, 03:08 PM
RE: FORTH for the HP 50G - Helix - 09-28-2022, 11:52 PM
RE: FORTH for the HP 50G - dmh - 09-29-2022, 12:09 AM
RE: FORTH for the HP 50G - Helix - 09-29-2022, 10:14 PM
RE: FORTH for the HP 50G - dmh - 09-29-2022, 12:33 AM
RE: FORTH for the HP 50G - dmh - 09-30-2022 12:13 PM
RE: FORTH for the HP 50G - dmh - 09-30-2022, 07:11 AM
RE: FORTH for the HP 50G - Helix - 10-01-2022, 05:14 PM
RE: FORTH for the HP 50G - dmh - 10-02-2022, 01:50 AM
RE: FORTH for the HP 50G - Helix - 10-02-2022, 12:49 PM
RE: FORTH for the HP 50G - dmh - 10-02-2022, 12:57 PM
RE: FORTH for the HP 50G - Helix - 10-02-2022, 02:14 PM



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