This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: [testsuite gfortran] partial fix for secnds*.f


Dominique Dhumieres wrote:
However... as a general rule, I've learned that it is better to add real
values from small to big (less loss of precision that way).

What I have learned too, but apparently this is a trick for fortran dinosaurs!-)


Not at all, what was known in ancient times has been confirmed repeatedly. Ignoring this rule, while it sometimes could be done safely in extra precision x87 code, compounded the confusion encountered by those who didn't care to pay attention. Now, it is more important than ever to avoid sloppy code which gives different results according to precision of intermediate evaluation.


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