Skip to content

Commit

Permalink
tranleduy2000#94: GCD , LCM removed $$
Browse files Browse the repository at this point in the history
  • Loading branch information
axkr committed May 22, 2021
1 parent 65c514d commit 866defd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,10 @@ public void onEvaluated(String expr, String result, int resultId) {
String operator = expr.substring(0,3).toLowerCase();
String nums = expr.substring(4, expr.length() - 1);
if(operator.equals("gcd")){
result = "$$" + executeGCD(nums) + "$$";
result = executeGCD(nums);
}
if(operator.equals("lcm")){
result = "$$" + executeLCM(nums) + "$$";
result = executeLCM(nums);
}
if (mCurrentState == CalculatorState.EVALUATE) {
onResult(result);
Expand Down

0 comments on commit 866defd

Please sign in to comment.