[Bug libfortran/17706] reading a value of 0.0 gives a value of -0.0

bdavis9659 at comcast dot net gcc-bugzilla@gcc.gnu.org
Tue Sep 28 02:26:00 GMT 2004


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



More information about the Gcc-bugs mailing list