Sep 18, 2009 #1 creeve4 Mechanical Joined Sep 18, 2009 Messages 2 Location US 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?
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?
Sep 18, 2009 #2 johnhors Aerospace Joined Jan 21, 2004 Messages 1,021 Location GB change the line WRITE (*,*) 'you entered ',x to WRITE (*,'(''you entered '',F12.2)')x http://www.Roshaz.com Upvote 0 Downvote
change the line WRITE (*,*) 'you entered ',x to WRITE (*,'(''you entered '',F12.2)')x http://www.Roshaz.com