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]

[Fwd: Formatted Read Accuracy]


 
--- Begin Message ---
Gokhan Kisacikoglu wrote:
> 
> > input xllt is  67.9936  and it becomes 67.9935989
> >
> 
> These happen because of floating point accuracy, it has nothing to do
> with the reader or your format statement. Certain numbers can not be
> accurately represented with float numbers (even with double
> precision)...
> 
> Good luck,
> -kisa

I don't understand -- the numbers  are correctly read with the F77 compiler 
used on the same source code.  This is only one example of hundreds of numbers
that are read and G77 adds change in the fifth thru seventh decimal places on 
all of them.

Blime
--- End Message ---

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