Skip to main content

The primary purpose...

Submitted by Ken Watts on Fri, 08/31/2007 - 18:22

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