mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-06-05 21:49:13 +02:00
autoformatting the code, no real change
This commit is contained in:
@ -234,14 +234,14 @@ class CalculatorImpl(calculator: Calculator, val context: Context) {
|
||||
private fun decimalClicked() {
|
||||
var value = displayedNumber
|
||||
if (!value!!.contains(".")) {
|
||||
if(value.toString().equals("0")){
|
||||
if (value.toString() == "0") {
|
||||
inputDisplayedFormula = "0."
|
||||
} else {
|
||||
inputDisplayedFormula += "."
|
||||
}
|
||||
} else {
|
||||
value = displayedNumber!!.substring(displayedNumber!!.indexOfAny(operations, 0, false) + 1)
|
||||
if (!value!!.contains(".")) {
|
||||
if (!value.contains(".")) {
|
||||
inputDisplayedFormula += "."
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user