G77: about displaying double precision variables by the statement "WRITE (*,*)"

apostolo alberto apoalb@yahoo.it
Mon May 9 08:10:00 GMT 2005


Respectable GNU Foundation,
may I ask you something about G77 , please ?

I use G77 ( version 0.5.25 19990728 , with this
options : -fno-f90 -fno-backslash , -fpedantic , -Wall
) and GCC ( version 2.95 19990728 ) .

Let be A in DOUBLE PRECISION .
Why does the statement "WRITE (*,*) A" display only 8
digits as A declared REAL ?
I expected almost 16 digits !

In some Fortran77 dialects ( for istance RM/FORTRAN )
the statement "WRITE (*,*)" displays variables in
these following layouts:

9.9999999E+99           ( for REAL var. )
9.99999999999999999E+99 ( for DOUBLE PRECISION var.) .

Has G77 any option to obtain the same thing ?
Did someone already fix this in a new release? 

Many thanks for paying me attention.
Sincerely.

Alberto Apostolo


		
___________________________________ 
Nuovo Yahoo! Messenger: E' molto più divertente: Audibles, Avatar, Webcam, Giochi, Rubrica… Scaricalo ora! 
http://it.messenger.yahoo.it



More information about the Fortran mailing list