Tuesday, March 24, 2009

FORTRAN - primary purpose of the DATA statement

"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

No comments:

Post a Comment

Whether you like this and agree with me, or not, thank you for your comments. I normally do not purge an individual comment, unless it is obscene or obvious spam. If you have a question, do feel free to e-mail me at this address web2.0plus@gmail.com - Stan W.