Okay, I think I've found the reason for the issue, and you're right; it
is a duplicate.  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.
On this bug, for instance, I type

7

This works normally.  7 = 7; it correctly calculates that.  Then I move
my arrow key over to type a 12 before the 7 and the arrow keys right to
type +7.  However, where I am seeing

127 + 7

the calculator is seeing

12 x 7 + 7

Therefore, it calculates that 12 * 7 (84) + 7 = 91.  It's the same issue
on the duplicate; I'll explain in a comment over there.

-- 
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/1680438

Title:
  gnome-calculator comes up with totally wrong answer

Status in gnome-calculator package in Ubuntu:
  Confirmed

Bug description:
  Confirmed on:
   - Ubuntu 16.04.1: gnome-calculator version 1:3.18.3-0ubuntu1
   - Ubuntu 16.04.2: gnome-calculator version 1:3.18.3-0ubuntu1.16.04.1

  To reproduce the bug (have tried on multiple computers) do something
  along these lines in the gnome-calculator app:

   - Press 7 and Enter.  Screen should show 7 = 7, input field should show 7.
   - Press left arrow and type 12, then the right arrow and type +7.  Input 
field should show 127+7.
   - Press Enter.  Screen will show 127+7 = 91, input field will show 91.

  No scientific modes or anything; this is in normal mode.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-calculator/+bug/1680438/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to