After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 78292 - gcalc doesn't work around floating point imprecision well/at all
gcalc doesn't work around floating point imprecision well/at all
Status: RESOLVED WONTFIX
Product: gnome-utils
Classification: Deprecated
Component: gcalc
trunk
Other Linux
: Normal minor
: GNOME2.2
Assigned To: gnome-utils Maintainers
gnome-utils Maintainers
: 92654 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-04-10 15:01 UTC by Havoc Pennington
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Havoc Pennington 2002-04-10 15:01:25 UTC
See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=62644

We need to round to 0 or something to avoid being confusing.
kcalc and windows calculator do this somehow.
Comment 1 Luis Villa 2002-04-18 14:56:42 UTC
re-titling to make it more clear.
Comment 2 Glynn Foster 2002-04-29 15:59:50 UTC
GNOME 2.0
Comment 3 Glynn Foster 2002-05-08 10:27:44 UTC
Okay, this may [not] be an easy-fix.
Comment 4 Chema Celorio 2002-05-13 02:29:00 UTC
Why is this a GNOME2.0.0 bug? It doesn't seem anything close to
critical to me, there are bigger problems to fix.
Comment 5 Glynn Foster 2002-05-13 02:32:13 UTC
for me, it's a 2.0 bug [in relation to the rest of the gnome-utils
bugs] because 
a) looks bad from the end user point of view [usability wise it's a
disaster]
b) think it can be fixed in time for 2.0 - if it can't it will be punted.
Comment 6 Glynn Foster 2002-05-13 13:37:12 UTC
okay, Luis, I'd like to talk to you about how this should work from
your side of things.
Comment 7 Luis Villa 2002-05-13 13:49:56 UTC
Yeah, we probably should- can you give me a day? I'm not entirely sure
how it should proceed, either, so I've asked g2rt for some feedback
which I'd like to have first.
Comment 8 Glynn Foster 2002-05-14 12:13:24 UTC
punt.
Comment 9 Luis Villa 2002-07-02 16:42:41 UTC
Continued punt. :) Given that anyone concerned can ship gcalctool now,
is this a wontfix?
Comment 10 Havoc Pennington 2002-07-02 18:52:19 UTC
What's gcalctool? Is it in gnome-utils?
Comment 11 Glynn Foster 2002-07-02 19:21:13 UTC
it's in CVS...it does lots more...plus check out those groovy colours ;)
Comment 12 Havoc Pennington 2002-07-02 20:38:02 UTC
I'm not really convinced that the standard calculator should be a big
scary scientific thing (though I'd love to have said big scary thing).
gcalctool also seems to have some issues, e.g. you can't use the
numeric keypad...

But I can imagine gcalctool getting fixed up, e.g. with a scientific
and regular mode defaulting to regular. Looks promising.
Comment 13 Luis Villa 2002-08-20 02:09:13 UTC
At this point does anyone object punting this to 2.2?
Comment 14 John Fleck 2002-08-20 03:38:44 UTC
Punt.
Comment 15 Glynn Foster 2002-09-06 12:33:08 UTC
*** Bug 92654 has been marked as a duplicate of this bug. ***
Comment 16 Yogeesh 2002-09-25 13:58:14 UTC
I verified with sun's beta2 build9 on solaris cvs dated 17th july.
both sin(360) and tan(360) are not equal to zero, 
this bug is still reproducible.
Comment 17 Ashok Venkiteswaran 2002-10-26 05:42:27 UTC
I verified this in Sun's stable build 12
(CVS snapshot date "Tue Oct 15 15:00:00 BST 2002) and found that 
sin(360) and tan(360) return the following values and not zero. 

1) Start gnome-calculator
2) Enter a number say "360"
3) Click on the "sin" button and it returns the value "-2.44929e-16"
4) Click on "AC" to clear
5) Enter a number say "360"
6) Click on the "tan" button and it returns the value "-2.44929e-16"

Using calculator application on Microsoft Windows paltform both 
returns the value zero. 






Comment 18 Ashok Venkiteswaran 2002-10-26 05:53:42 UTC
Sorry CVS snapshot for Sun's stable build 12 for gnome-utils 
component is Tue Oct  1 13:26:01 BST 2002. Please correct this when 
reading the above bug log. 
Comment 19 Glynn Foster 2003-05-19 10:17:40 UTC
yup, you're right. maybe gcalctool will handle things better. That's
where new bugs should be filed. Closing as WONTFIX.