diff --git a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt index 83c302de..7933cf14 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt @@ -73,7 +73,9 @@ class CalculatorImpl(calculator: Calculator, private val context: Context) { } if (operation == ROOT && inputDisplayedFormula == "0") { - inputDisplayedFormula = "√" + if (lastKey != DIGIT) { + inputDisplayedFormula = "1√" + } } val lastChar = inputDisplayedFormula.last().toString()