Dynaverse.net

Off Topic => Engineering => Topic started by: toasty0 on June 25, 2009, 09:51:03 am

Title: Programming Lesson: How I learned to program SFC by Xerox
Post by: toasty0 on June 25, 2009, 09:51:03 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

 :o
Title: Re: Programming Lesson: How I learned to program SFC by Xerox
Post by: Lono on June 25, 2009, 02:15:14 pm
Now THAT'S funny!  ;D

Couldn't we just round it to 3?

 :P

Title: Re: Programming Lesson: How I learned to program SFC by Xerox
Post by: Sarek on June 26, 2009, 05:47:47 pm
You know how Pun is about pi, if he gets hold of the program you'll be lucky if it's not zero.