Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Arkadiy Chapkis - Arc <achapkis@mail.dls.net>
To: AXP-LIST@redhat.com
Subject: g77 real size
Date: Wed, 16 Oct 2002 14:25:28 -0500	[thread overview]
Message-ID: <00A158A8.56FB1D1A.5483@mail.dls.net> (raw)

  Hello everyone.

  Sorry for the off-topic, I just wonder if there's a switch for g77 to make a
double precision number out of real fp number (not defined, used by default).
The piece of code

	a=1.
        b=a+1./1e12
        c=b-a
        write(*,*) c
        end

compiled with g77 cuts off everything after 8 digits left of point. Since
what's left are 8 zeros, the result is 0.
  I got the (almost) right result using Compaq fort with -real_size 64, but
don't know that there's something equivalent in g77.

  Thank you in advance,


                                      Arc C.
                                      achapkis@dls.net




             reply	other threads:[~2002-10-16 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 19:25 Arkadiy Chapkis - Arc [this message]
2002-10-17 11:24 ` g77 real size Nelson Brito
  -- strict thread matches above, loose matches on Subject: below --
2002-10-16 21:21 Eugene Chu
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