GNOME Bugzilla – Bug 371669
Floating Hexadecimal values converting to any
Last modified: 2006-12-15 15:28:51 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:
Transferring to Sami for further evaluation.
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.
Created attachment 78433 [details] [review] Patch to hopefully fix the problem.
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.