Search in sources :

Example 1 with OpBigDecimal

use of lucee.transformer.bytecode.op.OpBigDecimal in project Lucee by lucee.

the class PrecisionEvaluate method toOpBigDecimal.

private OpBigDecimal toOpBigDecimal(OpDouble op) {
    Expression left = op.getLeft();
    Expression right = op.getRight();
    if (left instanceof OpDouble)
        left = toOpBigDecimal((OpDouble) left);
    if (right instanceof OpDouble)
        right = toOpBigDecimal((OpDouble) right);
    return new OpBigDecimal(left, right, op.getOperation());
}
Also used : OpDouble(lucee.transformer.bytecode.op.OpDouble) Expression(lucee.transformer.expression.Expression) OpBigDecimal(lucee.transformer.bytecode.op.OpBigDecimal)

Aggregations

OpBigDecimal (lucee.transformer.bytecode.op.OpBigDecimal)1 OpDouble (lucee.transformer.bytecode.op.OpDouble)1 Expression (lucee.transformer.expression.Expression)1