From: Grzegorz Mucha <grzes () twins ! pk ! edu ! pl>
To: tru64-unix-managers
Subject: SUMMARY? double prec. bug in g77?
Date: Tue, 31 Oct 1995 15:05:37 +0000 [thread overview]
Message-ID: <96075324106835.tru64-unix-managers.marc@archive.invalid> (raw)
Recently I wrote:
> > (111)|alpha:~/FORTRAN> more test1.f
> > program test1
> > a=1.5
> > write(*,*)'a = ',a
> > b=1.5e2
> > write(*,*)'b = ',b
> > end
> >
> > is:
> > (113)|alpha:~/FORTRAN> a.out
> > a = 1.5
> > b = 150.
> >
> > but when I change the program to:
> >
> >
> > double precision a,b
> > a=1.5
> > write(*,*)'a = ',a
> > b=1.5e2
> > write(*,*)'b = ',b
> > end
> >
> > all I get is:
> > (113)|alpha:~/FORTRAN> a.out
> > a = 0.
> > b = 0.
>
Many people suggested me to change to:
> a = 1.5d0
> b = 1.5d2
to declare double precision explicite, but it didn't help unfortunately.
It definitively not Fortran error, this program is running correctly
under DEC FORTRAN 77 and 90. So it's g77 bug... and it's still unsolved.
Thanks to all who responded,
Grzegorz
--
_/_/_/ _/ _/ _/_/_/_/_/ Grzegorz Mucha
_/ _/ _/ _/ Civil Eng. Dept., L-5 Inst.
_/ _/ _/ _/ System Administrator
_/ _/ _/ _/ tel. +48 12 330340
_/_/_/racow _/_/_/niversity of _/echnology grzes@twins.pk.edu.pl
reply other threads:[~1995-10-31 15:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox