[personal profile] miekec
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

Date: 2005-07-06 11:19 am (UTC)
From: (Anonymous)
Now THAT's planning ahead.

Profile

miekec

May 2017

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 23rd, 2026 12:24 pm
Powered by Dreamwidth Studios