Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: grzes@twins.pk.edu.pl (Grzegorz Mucha)
Subject: double prec. bug in g77?
Date: 1995/10/30	[thread overview]
Message-ID: <DH9DyJ.KG@cyf-kr.edu.pl> (raw)

Hi,

I'm running g77-0.5.16/gcc-2.7.0 on DEC Alpha running DU 3.2.
And I found sth. strange:

Output from:

(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.

and the question is as usual: what's going on?

					TIA, 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-30  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-10-30  5:00 Grzegorz Mucha [this message]
1995-10-30  5:00 ` double prec. bug in g77? Michel Kern
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