Comment 3 for bug 1357983

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

the problem is that saving partial result, that are longer of CALC.PRECISION we cannot add another sign, this because engine.js check the length of the calci

Before 1/3=+1 had a length of 4
Now is 1/3= that becomes 0.3333333333333333
so you can't add 1

The code is here:
http://bazaar.launchpad.net/~ubuntu-calculator-dev/ubuntu-calculator-app/trunk/view/head:/engine.js#L358
This is right because we don't want to long numbers
so we need a workaround
but if you start to add console.log you see that is here the operation stop