Mail Archives: pgcc/1999/07/05/12:30:16
Sender: | jlopes AT fc DOT up DOT pt
|
Message-ID: | <378124C2.FFD900DD@fc.up.pt>
|
Date: | Mon, 05 Jul 1999 17:33:54 -0400
|
From: | =?iso-8859-1?Q?Jo=E3o?= Manuel Viana Parente Lopes <jlopes AT fc DOT up DOT pt>
|
Organization: | Faculdade de =?iso-8859-1?Q?Ci=EAncias?=
|
X-Mailer: | Mozilla 4.6 [en] (X11; I; Linux 2.2.3 i686)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
To: | pgcc AT delorie DOT com
|
Subject: | Problem in Mod() Calculation
|
X-MIME-Autoconverted: | from 8bit to quoted-printable by caserver.fc.up.pt id RAA14022
|
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id MAA21709
|
Reply-To: | pgcc AT delorie DOT com
|
Hello,
I've found some strange thing in pgcc-g77 compiler,
When I do something like:
program teste
integer k
do k = 127,131
write(6,*) k,mod(k,32), k - k/32*32
enddo
end
I obtain,
127 31 31
128 0 0
129 -31 1 -> That's a silly thing, in mod() calculation!!!
130 -30 2
131 -29 3
I had solved the problem making the calculation by hand....
In egcs-1.0.3 release, I don't have this problem...
Thank's
Joćo Lopes
- Raw text -