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 665994 - Impossible to enter decimal exponents using the calculator ui button
Impossible to enter decimal exponents using the calculator ui button
Status: RESOLVED OBSOLETE
Product: gnome-calculator
Classification: Core
Component: general
6.2.x
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-12 13:05 UTC by Pedro Villavicencio
Modified: 2018-05-22 11:47 UTC
See Also:
GNOME target: ---
GNOME version: 3.1/3.2



Description Pedro Villavicencio 2011-12-12 13:05:52 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."
Comment 1 Robert Roth 2012-07-29 21:36:43 UTC
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.
Comment 2 punitkoura099 2013-04-13 17:57:43 UTC
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
Comment 3 GNOME Infrastructure Team 2018-05-22 11:47:13 UTC
-- 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.