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 579849 - Left/right shifting returns an incorrect value
Left/right shifting returns an incorrect value
Status: RESOLVED DUPLICATE of bug 569176
Product: gnome-calculator
Classification: Core
Component: general
5.24.x
Other All
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-22 16:01 UTC by Emre Eraltan
Modified: 2009-04-23 03:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Emre Eraltan 2009-04-22 16:01:48 UTC
Please describe the problem:
Trying to left shifting 10 places the binary number 1 should give 10000000000 in binary mode (1024 in decimal). The calculator returns 10100 in binary (20 in decimal)

Steps to reproduce:
1. Switch to binary mode
2. Type 1
3. Shift left 10 places the displayed value


Actual results:
The calculator returns the binary number 10100

Expected results:
The calculator should have returned the binary number 10000000000 = 2^10 (in decimal)

Does this happen every time?
yes

Other information:
Right shifting returns also bad values.
This was not happening on Fedora 7.
I am using the Gcalctool provided with Fedora 10.
Comment 1 Robert Ancell 2009-04-23 03:40:58 UTC
Thanks for taking the time to report this bug.
This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade.


*** This bug has been marked as a duplicate of 569176 ***