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 328524 - gcalctool does not produce sqareroots as desired
gcalctool does not produce sqareroots as desired
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other AIX
: Normal major
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2006-01-25 06:25 UTC by bbfk
Modified: 2006-04-12 06:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description bbfk 2006-01-25 06:25:29 UTC
Distribution: Debian 3.1
Package: gcalctool
Severity: major
Version: GNOME2.10.2 unspecified
Gnome-Distributor: Debian
Synopsis: gcalctool does not produce sqareroots as desired
Bugzilla-Product: gcalctool
Bugzilla-Component: general
Bugzilla-Version: unspecified
Description:
Description of Problem:
the manual of "Taschenrechner" says you should press a number and click
the Wurz (= sqrt) button. Pressing = afterward produces an error.

Steps to reproduce the problem:
1. open gcalctool (taschenrechner)
2. click 5
3. click wurz

Actual Results:

error "fehlerhafter Ausdruck" (translates as:missformed expression)
Expected Results:
2.23606

How often does this happen?
always

Additional Information:
I also tried : Wurz, 5 , ), = and get the same error: missformed
expression

When using the scientific calculater and pressing

5, x^y, (, 2, ), =

I get the correct result.

Either the manual is incorrect or the function does not work properly.
Since sqrt(5) should produce some result the second alternative looks
more feasible.

Bernhard Kleine




------- Bug created by bug-buddy at 2006-01-25 06:25 -------

Comment 1 Rich Burridge 2006-01-25 15:28:28 UTC
Hi Bernhard. A couple of questions:

1/ Which version of gcalctool?  (Help->About
   from the menu bar will tell you this).

2/ Which mode are you in?  Look under the View menu
   to see if you have "arithmetic operator precedence
   mode" checked.

I suspect you are in arithmetic operator precedence mode
where the sequence of commands you have to enter is:

Sqrt  5  )  =

With the very latest version of gcalctool (5.7.27), this works
fine.

Recently there have been problems with the token parser breaking 
in arithmetic operator precedence mode, because the label of the 
square root button was changed to the Unicode symbol for square 
root (bug #323150). If you are running a version of gcalctool
earlier than 5.7.27, you are probably seeing this problem.

Having said this, even with the latest one, the documentation is
incorrect. Unfortunately there isn't anybody working on gcalctool 
documentation at the moment (and therefore the online user manual 
is about two GNOME releases out of date). 

To make sure that this isn't forgotten, I've added an entry to bug #309210, 
the placeholder for all the needed gcalctool documentation changes.
Comment 2 bbfk 2006-04-12 06:55:54 UTC
I think this bug can be closed, since the program works fine with your help