undefined values stop calculation of the formula
This commit is contained in:
parent
68e7827221
commit
832f5c1c9b
@ -66,6 +66,7 @@ function Evaluate() {
|
||||
let formulaValuesRPNArray = ConvertCharsToValues(formulaRPNArray);
|
||||
|
||||
let result = SolveRPNFormula(formulaValuesRPNArray);
|
||||
if (result == undefined) return;
|
||||
let readableResult = ConvertToReadableResult(result);
|
||||
|
||||
let resultField = document.getElementById('result');
|
||||
@ -272,6 +273,7 @@ function StepByStep() {
|
||||
let formulaValuesRPNArray = ConvertCharsToValues(formulaRPNArray);
|
||||
|
||||
let result = SolveRPNFormula(formulaValuesRPNArray);
|
||||
if (result == undefined) return;
|
||||
let readableResult = ConvertToReadableResult(result);
|
||||
|
||||
let resultField = document.getElementById('result');
|
||||
|
Loading…
Reference in New Issue
Block a user