Formatted Read Accuracy

Emil Block blime@his.com
Wed Oct 9 07:40:00 GMT 2002


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



More information about the Gcc-help mailing list