Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - we first define a<b> simple real constant</b> as follows: an optional sign http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
We first define a simple real constant as follows:  an optional sign
followed by an integer part followed by a decimal point followed by a
fractional part.  The integer and fractional parts are non-empty strings of
digits.  The fractional part can be omitted.

A real constant has one of the following forms.

(1)
    A simple real constant.

(2)
    A simple real constant followed by an E or e followed by an optionally
    signed integer constant.

The optionally signed integer constant that follows the E is called the
exponent.  The value of a real constant that contains an exponent is the
value of the constant preceding the E multiplied by the power of ten
determined by the exponent.

The following are examples of real constants.


     123.764
     0.4352344
     1423.34E12
     +345.E-4
     -0.4565788E3
     2.E6
     1234.

Note:
    The accepted forms of floating-point constants are a subset of that
    supported by the FORTRAN 77 programming language.  The debugger does not
    support floating-point constants that begin with a decimal point (e.g.,
    .4352344) or have no decimal point (e.g., 2E6).  However, both forms
    would be acceptable to a FORTRAN compiler.  Also, the debugger does not
    support double precision floating-point constants where "D" is used
    instead of "E" for the exponent part (e.g., 2D6, 2.4352344D6).  All
    floating-point constants are stored internally by the debugger in double
    precision format.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson