This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Formatted Read Accuracy


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]