[gforth] / gforth / Attic / gforth.ds

# gforth: gforth/Attic/gforth.ds

### Diff for /gforth/Attic/gforth.ds between version 1.15 and 1.16

version 1.15, Sat Apr 29 14:51:16 1995 UTC version 1.16, Sat Jun 3 14:24:42 1995 UTC
 Line 409
 Line 409

@node Double precision, Floating Point, Mixed precision, Arithmetic  @node Double precision, Floating Point, Mixed precision, Arithmetic
@subsection Double precision  @subsection Double precision

The outer (aka text) interpreter converts numbers containing a dot into
a double precision number. Note that only numbers with the dot as last
character are standard-conforming.

doc-d+  doc-d+
doc-d-  doc-d-
doc-dnegate  doc-dnegate
 Line 419
 Line 424
@node Floating Point,  , Double precision, Arithmetic  @node Floating Point,  , Double precision, Arithmetic
@subsection Floating Point  @subsection Floating Point

The format of floating point numbers recognized by the outer (aka text)
interpreter is: a signed decimal number, possibly containing a decimal
point (@code{.}), followed by @code{E} or @code{e}, optionally followed
by a signed integer (the exponent). E.g., @code{1e} ist the same as
@code{+1.0e+1}. Note that a number without @code{e}
is not interpreted as floating-point number, but as double (if the
number contains a @code{.}) or single precision integer. Also,
conversions between string and floating point numbers always use base
10, irrespective of the value of @code{BASE}. If @code{BASE} contains a
value greater then 14, the @code{E} may be interpreted as digit and the
number will be interpreted as integer, unless it has a signed exponent
(both @code{+} and @code{-} are allowed as signs).

Angles in floating point operations are given in radians (a full circle  Angles in floating point operations are given in radians (a full circle
has 2 pi radians). Note, that gforth has a separate floating point  has 2 pi radians). Note, that gforth has a separate floating point
stack, but we use the unified notation.  stack, but we use the unified notation.

Generate output suitable for use with a patch program
Legend:
 Removed from v.1.15 changed lines Added in v.1.16