On Thu, 17 Jun 2021 09:07:35 -0700, Charles Mills wrote:

><g>
>
>Charles
>
It's more likely that there be a need to correct a typo, or worse
an inconsistency, in scattered coded values of π.

Put it in a header file.

Somewhere, IBM supplies a macro that equates a symbol to 44
for the length of a data set name.  That equated symbol is
rarely used.  Could it be  changed in thee future?

>-----Original Message-----
>From: Mark Jacobs
>Sent: Thursday, June 17, 2021 8:49 AM
>
>The primary purpose of the DATA statement is to give names to
>constants; instead of referring to pi as 3.141592653589793 at every
>appearance, the variable PI can be given that value with a DATA
>statement and used instead of the longer form of the constant. This
>also simplifies modifying the program, should the value of pi change.
>        ― FORTRAN manual for Xerox Computers

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to