- #1
js6201
- 7
- 0
Member advised to use the homework template for posts in the homework sections of PF.
Programming with Fortran77,
I got some problems during coding...
How can I set to be the value?
For example, I want to the value 'a' set to be 0.0000045.
But, in command window, value of a is set to be 0.000004499876895.
How can I set to be the value 'a'?
In my case, I command the real value (real=real*4, not real*8 or double precision)...
program check
implicit none
real a
integer j
j=4.000
a=0.0000045
write(*,*) j , a
end program
======> 4 0.000004499876895
I don't want that value...I want 0.0000045...
I got some problems during coding...
How can I set to be the value?
For example, I want to the value 'a' set to be 0.0000045.
But, in command window, value of a is set to be 0.000004499876895.
How can I set to be the value 'a'?
In my case, I command the real value (real=real*4, not real*8 or double precision)...
program check
implicit none
real a
integer j
j=4.000
a=0.0000045
write(*,*) j , a
end program
======> 4 0.000004499876895
I don't want that value...I want 0.0000045...