}
} else if (theOperator.equals("/")) {
try {
// This path will strip off extraneous decimal places, but will fail
// with numbers that repeat (e.g., 1/3 = .33333333333)
result = new Variable(lValue.asNumber().divide(rValue.asNumber()));
} catch (Exception e) {
// This path will handle the repeating numbers
result = new Variable(lValue.asNumber().divide(rValue.asNumber(),PRECISION, ROUNDING_MODE));
}
}