jumpunderaboat
Programmer
I've made a program which outputs certain numerical data, angles in radians. However sometimes, my output has values like 7 and 8, which should really be 0.72 and 1.72(or -1.42).
So I'm guessing I need an if statement along the lines of:
if a>pi
then a=a-pi
else print *, a
end if
...But this doesn't seem to work. I was thinking I may need some kind of do loop here also but am a bit unsure how to implement it.
P.S. forgive me, I haven't used FORTRAN a great deal in the past!
So I'm guessing I need an if statement along the lines of:
if a>pi
then a=a-pi
else print *, a
end if
...But this doesn't seem to work. I was thinking I may need some kind of do loop here also but am a bit unsure how to implement it.
P.S. forgive me, I haven't used FORTRAN a great deal in the past!