Bug 152021 - gcalctool-5.8.24 doesn't accept typed float hexadecimal
Bug#: 152021 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome@gentoo.org Reported By: zerocaronte@gmail.com
Component: GNOME
URL: 
Summary: gcalctool-5.8.24 doesn't accept typed float hexadecimal
Keywords:  
Status Whiteboard: 
Opened: 2006-10-19 19:45 0000
Description:   Opened: 2006-10-19 19:45 0000
I can type 0,2 in decimal mode and then go to hexadecimal mode, so that it will
display 0,19999999A. If i go back to decimal, it will show 0,2 again.

But if I copy 0,19999999A, clear the calculator (pressing esc), and under
hexadecimal mode paste 0,19999999A, it won't change to decimal mode, saying
it's not a sane value. If i try to multiply 0,19999999A (under hexadecimal
mode) by 2, it will give me a "not well-formed expression" (in portuguese it is
"express

------- Comment #1 From Renan T. Inácio 2006-10-19 19:45:43 0000 -------
I can type 0,2 in decimal mode and then go to hexadecimal mode, so that it will
display 0,19999999A. If i go back to decimal, it will show 0,2 again.

But if I copy 0,19999999A, clear the calculator (pressing esc), and under
hexadecimal mode paste 0,19999999A, it won't change to decimal mode, saying
it's not a sane value. If i try to multiply 0,19999999A (under hexadecimal
mode) by 2, it will give me a "not well-formed expression" (in portuguese it is
"expressão mal formada")

That only happens if you input a float number with letters, since with integers
that doesn't happen, neither if I only use numbers with fractions.

------- Comment #2 From Pacho Ramos 2006-12-18 11:12:54 0000 -------
Is an upstream bug, it will be fixed in 5.9.9 that will be released tomorrow:
http://bugzilla.gnome.org/show_bug.cgi?id=371669

This is the patch used in this new version:
http://bugzilla.gnome.org/attachment.cgi?id=78433&action=view

Thanks ;-)

------- Comment #3 From Pacho Ramos 2007-02-10 22:06:29 0000 -------
Is an upstream bug, may be the patch
(http://bugzilla.gnome.org/attachment.cgi?id=78433&action=view) be applied to
current gcalctool version?

Thanks

------- Comment #4 From Daniel Gryniewicz 2007-02-11 02:08:32 0000 -------
I've added 2.8.25-r1 with this patch.