Why is Fortran rounding my real numbers
Why is Fortran rounding my real numbers
(OP)
I created the simple program that is attached.
When it echos my input of 47833.55 it is rounded to 47833.6
Why is this? Is it doing this for anyone else?
When it echos my input of 47833.55 it is rounded to 47833.6
Why is this? Is it doing this for anyone else?
RE: Why is Fortran rounding my real numbers
WRITE (*,*) 'you entered ',x
to
WRITE (*,'('you entered ',F12.2)')x
www.Roshaz.com