private String compute(String num1, String operation, String num2) {
		double value1;
		double value2;
		
		double answer = 0;
		if(num1.indexOf('e') >= 0) {
			String[] parts = num1.split("e");
			value1 = Math.pow(Double.parseDouble(parts[0]), Double.parseDouble(parts[0]));
			
		}
		else {
			value1 = Double.parseDouble(num1);
		}
		
		if(num2.indexOf('e') >= 0) {
			String[] parts = num2.split("e");
			value2 = Math.pow(Double.parseDouble(parts[0]), Double.parseDouble(parts[0]));
			
		}
		else {
			value2 = Double.parseDouble(num2);
		}
		
		if(operation.equals("PLUS")) {
			answer = value1 + value2;
		}
		else if(operation.equals("MINUS")) {
			answer = value1 - value2;
		}
		else if(operation.equals("MULT")) {
			answer = value1 * value2;
		}
		else if(operation.equals("DIVIDE")) {
			answer = value1 / value2;
		}
		else if(operation.equals("MOD")) {
			answer = value1 % value2;
		}
		else if(operation.equals("EXP")) {
			answer = Math.pow(value1,value2);
		}
		else {
			Values.Error("Error in operation.");
		}
				
		return Double.toString(answer);
	}