remove the decimal dot if its the last character
This commit is contained in:
parent
963829f4ac
commit
c5c0913eb8
|
@ -188,6 +188,7 @@ public class CalculatorImpl {
|
|||
else
|
||||
newValue = "0";
|
||||
|
||||
newValue = newValue.replaceAll("\\.$", "");
|
||||
newValue = formatString(newValue);
|
||||
setValue(newValue);
|
||||
baseValue = Formatter.stringToDouble(newValue);
|
||||
|
|
Loading…
Reference in New Issue