thanks, thats awesome - i didnt think of using a do while statement. one problem though, if have a value like -3.5 this becomes -0.35 or so. when it really ought to be around +2.8.
Imagine a circle around a point and I'm taking the lower vertical radius to equal 0. Therefore giving the...
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 site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.