This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: other/5580: double
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 4 Feb 2002 20:06:07 -0000
- Subject: Re: other/5580: double
- Reply-to: Andrew Pinski <pinskia at physics dot uc dot edu>
The following reply was made to PR other/5580; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: x-tronic@ji.cz
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: other/5580: double
Date: Mon, 4 Feb 2002 14:56:25 -0500
please close this; as this is not a bug but
a problem with the programmer not knowing
that a number without a decimal point is an integer
and does not get converted to a double unless it is
in an operation with a double.
Thanks,
Andrew Pinski
On Sunday, February 3, 2002, at 08:04 , x-tronic@ji.cz wrote:
>
>> Number: 5580
>> Category: other
>> Synopsis: double
>> Confidential: no
>> Severity: non-critical
>> Priority: medium
>> Responsible: unassigned
>> State: open
>> Class: sw-bug
>> Submitter-Id: net
>> Arrival-Date: Mon Feb 04 11:06:01 PST 2002
>> Closed-Date:
>> Last-Modified:
>> Originator: x-tronic@ji.cz
>> Release: gcc 2.96 20000731
>> Organization:
>> Environment:
> RedHat Linux 7.2
>> Description:
> double d1=40/12;
> double d2=40/12.00;
>
> d1 is 3 (???)
> d2 is 3.333 (as it should)
>
> leads to serious bugs in applications
>> How-To-Repeat:
>
>> Fix:
>
>> Release-Note:
>> Audit-Trail:
>> Unformatted:
>
>