Again, another little problem and I hope I'm not embarassing myself here...
Here is the simple code:
real8 :: a
do i = 1, 2000
if (i>1) then
a= 3 + ((i-1)((4-3)/1999))
end if
write(,) a
end do
results show a long list of 3.00000000000 values which are not (as expected) getting any bigger. I'd expect them to grow by 1/1999 = 0.00050025 each iteration but my WRITE just shows a long list of 3s.
This one has to be stupid, so go easy on me! (and HUGE thanks!)