This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/17706] reading a value of 0.0 gives a value of -0.0
- From: "bdavis9659 at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2004 02:26:28 -0000
- Subject: [Bug libfortran/17706] reading a value of 0.0 gives a value of -0.0
- References: <20040928013405.17706.bdavis@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bdavis9659 at comcast dot net 2004-09-28 02:26 -------
Subject: Re: reading a value of 0.0 gives a value of
-0.0
On Mon, 2004-09-27 at 20:58, pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-28 01:57 -------
> Hmm, I don't know if this is really a bug, -0.0001 trouncated to -0.0 unless there is no such thing as
> -0.0 in fortran.
from section 13.5.9, F77 standard:
On output, the representation of a positive or zero internal value in
the field may be prefixed with a plus, as controlled by the S, SP, and
SS edit descriptors (13.5.6) or the processor. The representation of a
negative internal value in the field must be prefixed with a minus.
However, the processor must not produce a negative signed zero in a
formatted output record.
--bud
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17706