From e6949aed923798863c7f140be01c27675a65bf8c Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 23 Dec 2017 15:04:30 +0100 Subject: [PATCH] Updated Division.js --- src/main/resources/rules/functions/Division.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/rules/functions/Division.js b/src/main/resources/rules/functions/Division.js index f25e9f36..486d7e6a 100644 --- a/src/main/resources/rules/functions/Division.js +++ b/src/main/resources/rules/functions/Division.js @@ -58,11 +58,13 @@ var rule = { nmb2 = nmb2.divide(integerNumber); }); result.add(new Division(mathContext, new Number(mathContext, nmb1), new Number(mathContext, nmb2))); + return result; } } } else { //divide a by b (a/b = c) result.add(variable1.divide(variable2)); + return result; } } }