GNOME Bugzilla – Bug 326344
binary display of 2^55-1 does not display correctly in scientific view
Last modified: 2006-01-10 18:00:47 UTC
Please describe the problem: Certain large numbers are not properly displayed in the 64bit binary represention area in scientific mode. ie: 2 ^ 55 - 1 Steps to reproduce: 1. 2 2. x^y 3. 55 4. ENTER 5. - 6. 1 7. ENTER Actual results: Shows only bit 55 set (seems to ignore -1) Expected results: Show all bits set from 0 to 54. Does this happen every time? Yes Other information: Keep subtracting 1 until the binary display syncs with the decimal display. Any number from 55 to 64 seems to do the same.
Yup. Reproduced here. Ugh. I'll have a look at it tomorrow. Thanks.
Created attachment 57115 [details] Fix (hopefully) for the problem. I rewrote the set_bit_panel() routine in gtk.c. It no longer converts the displayed number to a double then a long long, which is where the lose of accuracy was occuring. This also involved adding a couple of parameters to the make_fixed() routine in display.c to make it more generally useful for things like this.
Changes checked into CVS HEAD. Version number in configure.in bumped to 5.7.21.