Re: History of CREATE...DOES> ?

Liste des GroupesRevenir à cl forth 
Sujet : Re: History of CREATE...DOES> ?
De : minforth (at) *nospam* gmx.net (minforth)
Groupes : comp.lang.forth
Date : 02. Aug 2024, 07:27:48
Autres entêtes
Organisation : novaBBS
Message-ID : <17b1f2dc7b926ec8cb0ad635b6ae81a8@www.novabbs.com>
References : 1 2 3 4 5 6
User-Agent : Rocksolid Light
Really? With
SET-PRECISION / PRECISION ...
Return the number of significant digits currently used
by F.
and with
F. ...
Display, with a trailing space, the top number on the
floating-point stack using fixed-point notation:
  [-] ⟨digits⟩.⟨digits0⟩
i.e. digits+digits0 = number of significant digits
and with
  ⟨sign⟩ := { + | - }
  ⟨digits⟩ := ⟨digit⟩⟨digits0⟩
  ⟨digits0⟩ := ⟨digit⟩*
  ⟨digit⟩ := { 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }
F. should be standardized clearly enough.
F.ex.
Gforth 0.7.0, Copyright (C) 1995-2008 Free Software Foundation, Inc.
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `bye' to exit
5 set-precision  ok
1.1e-2 f. 0.011  ok  <- expected 5 digits i.e. 0.0110
1.1e-40 f. 0.00000000000000000000000000000000000000011  ok
is just an implementation-defined peculiarity.

Date Sujet#  Auteur
25 Jul 24 * History of CREATE...DOES> ?11Anton Ertl
25 Jul 24 +* Re: History of CREATE...DOES> ?9dxf
26 Jul 24 i`* Re: History of CREATE...DOES> ?8Anton Ertl
26 Jul 24 i `* Re: History of CREATE...DOES> ?7dxf
1 Aug 24 i  `* Re: History of CREATE...DOES> ?6Anton Ertl
2 Aug 24 i   `* Re: History of CREATE...DOES> ?5dxf
2 Aug 24 i    `* Re: History of CREATE...DOES> ?4minforth
2 Aug 24 i     `* Re: History of CREATE...DOES> ?3dxf
2 Aug 24 i      `* Re: History of CREATE...DOES> ?2minforth
2 Aug 24 i       `- Re: History of CREATE...DOES> ?1dxf
26 Jul 24 `- Re: History of CREATE...DOES> ?1albert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal