mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-06-05 21:49:13 +02:00
remove the decimal dot if its the last character
This commit is contained in:
@ -188,6 +188,7 @@ public class CalculatorImpl {
|
||||
else
|
||||
newValue = "0";
|
||||
|
||||
newValue = newValue.replaceAll("\\.$", "");
|
||||
newValue = formatString(newValue);
|
||||
setValue(newValue);
|
||||
baseValue = Formatter.stringToDouble(newValue);
|
||||
|
Reference in New Issue
Block a user