Someone wrote:

If I recall correctly, FORTRAN/PLI needed explicit exponentiation, i.e.,

    DOUBLE A,B
        .
    A = B+1.23

would use a short 1.23 rather than determining that the other operands were
double thus 1.23 should be treated as a double as well.

One had to do

    A = B+1.23D0

Fortran traditionally used the exponent letter.

PL/I traditionally used the form as written to determine the
precision and scale.  That is, 123.0000000E0 would be FLOAT DECIMAL(10).
Binary used the suffix B, and the value was given in binary digits
(with a decimal exponent).
1111.011E3B  for FLOAT BINARY(7).

Some compilers now might support exponent letters other than E.

Also, there are PL/I intrinsic functions if one wants a different
base, scale, precision, or mode.

BINARY(123E0,50)  for example.

C uses the suffix f for float (single precision), the default
being double.

More recently, Fortran has KIND specified with a suffix with the
appropriate constant value, usually the result of an intrinsic function.

-- glen

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to