From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9610171825.AA01152@moene.indiv.nluug.nl> Date: Thu, 17 Oct 96 20:25:04 +0200 From: Toon Moene Subject: Re: Fortran compiler for Linux/Alpha > Just a follow-up that may be of interest to f2c users. > The fortran code > IMPLICIT DOUBLE PRECISION (A - H) > c72=0.30901699437494742 > yields the following C code under f2c: > static doublereal c72; > c72 =(float).30901699437494742; > Why "float"? However, the following fortran source fixes > the problem: > c72=DBLE(0.30901699437494742) Indeed - the whys of this are explained in the g77 docs :-) Chapter 14.5 "Certain Changes We Don't Want to Make" second item. -mike michael.donahue@nist.gov ^^^^ National Institute of Standards and Technology ^^^^^^^^^ Interesting ... -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null