diff --git a/src/components/CalculatorContainer.vue b/src/components/CalculatorContainer.vue index 4903f4d..6c4f088 100644 --- a/src/components/CalculatorContainer.vue +++ b/src/components/CalculatorContainer.vue @@ -112,7 +112,8 @@ function evaluateExpression(evaluationMethod: Evaluations) { break } case "1/x": { - const quotient = 1 / Number(entry.value) + leftEntry.value = Number(entry.value) + const quotient = 1 / leftEntry.value entry.value = String(quotient) break }