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 371669 - Floating Hexadecimal values converting to any
Floating Hexadecimal values converting to any
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.8.x
Other All
: Normal normal
: ---
Assigned To: Sami Pietilä
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2006-11-06 19:16 UTC by Ewald van Geffen
Modified: 2006-12-15 15:28 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch to hopefully fix the problem. (1.87 KB, patch)
2006-12-15 15:26 UTC, Rich Burridge
none Details | Review

Description Ewald van Geffen 2006-11-06 19:16:34 UTC
Please describe the problem:
When you enter a floating point hexa value like 0.9A9E (somewhere around 0.608 in decimal), gcalc refuses to convert it. 'no sane value to convert'. However , if you enter 0.608 in decimal and then convert it to hex , it returns : 0.9A9FBE76D, now it is able to convert it back to decimal.

Steps to reproduce:
1. change to scientific mode
2. set it in hexadecimal
3. enter 0.9A9E
4. change it to decimal


Actual results:
admire the 'no sane value to convert' message at the bottom

Expected results:
converting the value to somewhere around 0.608

Does this happen every time?
yes, a friend of mine tried and had the same results.

Other information:
Comment 1 Rich Burridge 2006-11-06 20:29:08 UTC
Transferring to Sami for further evaluation.
Comment 2 Rich Burridge 2006-11-18 16:37:54 UTC
Bug verified. Problem only occurs in arithmetic operor precedence
mode.

Sami, I'd like to see this one fixed for GNOME 2.17.3 (about ten
days away). Do you have time to fix it? Thanks.
Comment 3 Rich Burridge 2006-12-15 15:26:56 UTC
Created attachment 78433 [details] [review]
Patch to hopefully fix the problem.
Comment 4 Rich Burridge 2006-12-15 15:28:51 UTC
Changes checked into CVS HEAD. Closing the bug as fixed.
New version of gcalctool with by release for GNOME 2.17.4
on about 20th December. Thanks.