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 70c9b8fa..a666e208 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calculator/helpers/CalculatorImpl.kt @@ -223,6 +223,10 @@ class CalculatorImpl(calculator: Calculator, private val context: Context) { val partial = baseValue / (100 / secondValue) baseValue.minus(partial) } + PERCENT -> { + val partial = (baseValue % secondValue) / 100 + partial + } else -> baseValue / (100 * secondValue) } }