What is the motivation for defining PI as
PI=4.D0*DATAN(1.D0)
within Fortran 77 code? I understand how it works, but, what is the reasoning?
This style ensures that the maximum precision available on ANY architecture is used when assigning a value to PI.
1.4m articles
1.4m replys
5 comments
57.0k users