GNOME Bugzilla – Bug 665994
Impossible to enter decimal exponents using the calculator ui button
Last modified: 2018-05-22 11:47:13 UTC
this report has been filed here: https://bugs.launchpad.net/ubuntu/+source/gcalctool/+bug/901234 "It is impossible to enter 10^4.7 or 10^(5+2) or similar. This seems to be a broken functionality."
A thing to mention: it's possible to enter this using the keyboard, but the user wants to do this using the superscript mode (Advanced mode, uparrow n toggle button), but the decimal, the parantheses and the + from the above expressions don't do into the superscript, thus the expression looks strange and causes malformed exception when executed.
Actually I want to work on the patch but I needed some help. I am new to Gnome Development, I have built the calculator, and have some idea on how it works. I also know the code has to be changed in math_display.vala and equation.vala math_display.vala has to be changed since it is displaying the numbers on the screen and appending them to the equation. equation.vala has to be changed since the super_atoi function must now render decimals and brackets correctly. However, first of all, I am not able to find how the superscript characters are added in clear text. Therefore, I am not able to add decimals as superscript. Same goes for brackets and other stuff. Then, I am not able to understand how the equation parser works. I am working on it, any help would be beneficial. Please help... I am new to vala as well. Thanks Punit
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-calculator/issues/23.