This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Formatted Read Accuracy
- From: Emil Block <blime at his dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 09 Oct 2002 10:38:06 -0400
- Subject: Formatted Read Accuracy
- Organization: Blime Incorporated
When reading a number from an input file with a formatted read statement the
value is not represented correctly when using the G77 compiler. For example,
read (line,3) xllt
3 format(f9.4)
input xllt is 67.9936 and it becomes 67.9935989
Anyone know how to correct this?
Blime