Re: ANN: DX-Forth 4.57

Liste des GroupesRevenir à cl forth 
Sujet : Re: ANN: DX-Forth 4.57
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.os.cpm comp.lang.forth
Date : 25. Dec 2024, 09:09:36
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <e5e1f8524522d6ce46bbbe3461a3ab654b335abc@i2pn2.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 25/12/2024 3:06 pm, John wrote:
...
Also, I seem to have some trouble with the floating point.
Keep getting f-stack error messages, which the manual says are under/over flows.
 
 
1 9 / <return>  returns a zero, not the expected 0.11111
 
So, I'm guessing the F* (etc.) are the floating point arithmetic.
3 5 F* <return>  however gives an "f-stack" error. 15 is an overflow?

Reals are entered with an 'e' thus:

3e 5e f* f. 15.  ok

The forth interpreter must be in DECIMAL for this to work.
 
And not sure how to enter decimals, I though maybe entering a ".0" after my numbers would flag them as reals not integers, but...
3.14  2.96  <return> does not put both numbers on the stack

Those would be illegal numbers - neither reals nor integers.  Integers
take the form:

Singles:  1 -2 3
Doubles:  1. -2. 3.

Doubles have their own operators  D+ D* D. etc.  There are also mixed operators
e.g. UM* that takes two unsigned singles and leaves an unsigned double.

 
Maybe I'm not doing it right, I'm just doing what's intuitive to me.
And yes, I'm running FORTH-F.  This is the DOS version.
Please help a wayward user....

Since Forth is rather different it has had to develop its own conventions.
A bit of practice and it will become second nature!

HTH


Date Sujet#  Auteur
8 Dec 24 * ANN: DX-Forth 4.5756dxf
9 Dec 24 `* Re: ANN: DX-Forth 4.5755Hans Bezemer
10 Dec 24  +* Re: ANN: DX-Forth 4.575dxf
10 Dec 24  i+- Re: ANN: DX-Forth 4.571albert
10 Dec 24  i`* Re: ANN: DX-Forth 4.573albert
10 Dec 24  i `* Re: ANN: DX-Forth 4.572dxf
11 Dec 24  i  `- Re: ANN: DX-Forth 4.571dxf
24 Dec 24  `* Re: ANN: DX-Forth 4.5749John
24 Dec 24   `* Re: ANN: DX-Forth 4.5748dxf
25 Dec 24    `* Re: ANN: DX-Forth 4.5747John
25 Dec 24     +* Re: ANN: DX-Forth 4.5745dxf
25 Dec 24     i`* FP number syntax (was: ANN: DX-Forth 4.57)44Anton Ertl
25 Dec 24     i +* Re: FP number syntax42minforth
26 Dec 24     i i`* Re: FP number syntax41dxf
26 Dec 24     i i +* Re: FP number syntax39Paul Rubin
26 Dec 24     i i i+* Re: FP number syntax36dxf
26 Dec 24     i i ii+* Re: FP number syntax30Paul Rubin
26 Dec 24     i i iii+* Re: FP number syntax2minforth
27 Dec 24     i i iiii`- Re: FP number syntax1dxf
26 Dec 24     i i iii`* Re: FP number syntax27Anton Ertl
27 Dec 24     i i iii +- Re: FP number syntax1dxf
27 Dec 24     i i iii +* Re: FP number syntax17Paul Rubin
27 Dec 24     i i iii i+* Re: FP number syntax5mhx
27 Dec 24     i i iii ii`* Re: FP number syntax4minforth
27 Dec 24     i i iii ii `* Re: FP number syntax3albert
27 Dec 24     i i iii ii  `* Re: FP number syntax2minforth
28 Dec 24     i i iii ii   `- Re: FP number syntax1albert
31 Dec 24     i i iii i`* Re: FP number syntax11Anton Ertl
1 Jan 25     i i iii i `* Re: FP number syntax10dxf
1 Jan 25     i i iii i  `* Re: FP number syntax9Bernd Linsel
1 Jan 25     i i iii i   `* Re: FP number syntax8dxf
1 Jan 25     i i iii i    +- Re: FP number syntax1dxf
1 Jan 25     i i iii i    `* Re: FP number syntax6Anton Ertl
1 Jan 25     i i iii i     +- Re: FP number syntax1HenryHH
1 Jan 25     i i iii i     `* Re: FP number syntax4dxf
1 Jan 25     i i iii i      +* Re: FP number syntax2mhx
1 Jan 25     i i iii i      i`- Re: FP number syntax1albert
1 Jan 25     i i iii i      `- Re: FP number syntax1dxf
27 Dec 24     i i iii `* Re: FP number syntax8albert
28 Dec 24     i i iii  +- Re: FP number syntax1dxf
31 Dec 24     i i iii  `* Re: FP number syntax6Anton Ertl
2 Jan 25     i i iii   `* Re: FP number syntax5Anton Ertl
3 Jan 25     i i iii    `* Re: FP number syntax4albert
3 Jan 25     i i iii     `* Re: FP number syntax3Anton Ertl
4 Jan 25     i i iii      +- Re: FP number syntax1minforth
4 Jan 25     i i iii      `- Re: FP number syntax1albert
3 Jan 25     i i ii`* Re: FP number syntax5dxf
3 Jan 25     i i ii +* Re: FP number syntax2minforth
3 Jan 25     i i ii i`- Re: FP number syntax1dxf
3 Jan 25     i i ii `* Re: FP number syntax2Anton Ertl
3 Jan 25     i i ii  `- Re: FP number syntax1minforth
26 Dec 24     i i i`* Re: FP number syntax2Anton Ertl
26 Dec 24     i i i `- Re: FP number syntax1dxf
26 Dec 24     i i `- Re: FP number syntax1mhx
25 Dec 24     i `- Re: FP number syntax (was: ANN: DX-Forth 4.57)1albert
26 Dec 24     `- Re: ANN: DX-Forth 4.571dxf

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal