GNOME Bugzilla – Bug 78292
gcalc doesn't work around floating point imprecision well/at all
Last modified: 2004-12-22 21:47:04 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.
re-titling to make it more clear.
GNOME 2.0
Okay, this may [not] be an easy-fix.
Why is this a GNOME2.0.0 bug? It doesn't seem anything close to critical to me, there are bigger problems to fix.
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.
okay, Luis, I'd like to talk to you about how this should work from your side of things.
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.
punt.
Continued punt. :) Given that anyone concerned can ship gcalctool now, is this a wontfix?
What's gcalctool? Is it in gnome-utils?
it's in CVS...it does lots more...plus check out those groovy colours ;)
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.
At this point does anyone object punting this to 2.2?
Punt.
*** Bug 92654 has been marked as a duplicate of this bug. ***
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.
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.
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.
yup, you're right. maybe gcalctool will handle things better. That's where new bugs should be filed. Closing as WONTFIX.