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