keep the numbers properly formatted at clearing digits
This commit is contained in:
parent
c90c123971
commit
12a07c0fcc
|
@ -188,10 +188,7 @@ public class CalculatorImpl {
|
||||||
else
|
else
|
||||||
newValue = "0";
|
newValue = "0";
|
||||||
|
|
||||||
if (newValue.equals("-0"))
|
newValue = formatString(newValue);
|
||||||
newValue = "0";
|
|
||||||
|
|
||||||
newValue = newValue.replaceAll(",$", "");
|
|
||||||
setValue(newValue);
|
setValue(newValue);
|
||||||
baseValue = Formatter.stringToDouble(newValue);
|
baseValue = Formatter.stringToDouble(newValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue