mirror of
https://github.com/FossifyOrg/Calculator.git
synced 2026-04-30 18:54:05 -04:00
keep the numbers properly formatted at clearing digits
This commit is contained in:
@@ -188,10 +188,7 @@ public class CalculatorImpl {
|
||||
else
|
||||
newValue = "0";
|
||||
|
||||
if (newValue.equals("-0"))
|
||||
newValue = "0";
|
||||
|
||||
newValue = newValue.replaceAll(",$", "");
|
||||
newValue = formatString(newValue);
|
||||
setValue(newValue);
|
||||
baseValue = Formatter.stringToDouble(newValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user