*** This bug is a duplicate of bug 1680438 ***
https://bugs.launchpad.net/bugs/1680438
Okay, I think I've found the reason for the issue. Basically, the
calculator is viewing the *new input* and the *last answer* as separate
numbers. Since no operator is specified, it is assumed to be
multiplication between the two numbers. So on this bug, you type:
First calc: -512−165+412−60
First result: -325
New input: 1849-325
...however, the *calculator* sees
New input: 1849 * -325
therefore, it sends out the (in it's mind correct) answer of
-600925
** This bug has been marked a duplicate of bug 1680438
gnome-calculator comes up with totally wrong answer
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-calculator in Ubuntu.
https://bugs.launchpad.net/bugs/1687053
Title:
Incorrect result in a calc
Status in gnome-calculator package in Ubuntu:
Confirmed
Bug description:
I found this bug trying to make a substraction with a previous result.
Do a calculation without decimals which gives a negative result. after
that, use arroy keys to move at the beggining of the input, I
introduced a positive number without sign and pressed enter.
First calc: −512−165+412−60
Previous result: -325
New input using previous result: 1849-325
Expected result: 1524
Given result: -600925
I think that it's a overflow problem.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-calculator 3.24.0
Uname: Linux PC-UG-0317 4.10.0-20-generic #22-Ubuntu x86_64 x86_64 GNU/Linux
SourcePackage: gnome-calculator
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-calculator/+bug/1687053/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp