Search in sources :

Example 1 with BigIntDiv

use of lucee.runtime.interpreter.ref.op.BigIntDiv in project Lucee by lucee.

the class CFMLExpressionInterpreter method _intdiv.

private Ref _intdiv(Ref ref) throws PageException {
    // \=
    if (cfml.forwardIfCurrent('=')) {
        cfml.removeSpace();
        Ref right = assignOp();
        Ref res = preciseMath ? new BigIntDiv(ref, right, limited) : new IntDiv(ref, right, limited);
        ref = new Assign(ref, res, limited);
    } else {
        cfml.removeSpace();
        ref = preciseMath ? new BigIntDiv(ref, expoOp(), limited) : new IntDiv(ref, expoOp(), limited);
    }
    return ref;
}
Also used : Ref(lucee.runtime.interpreter.ref.Ref) BigIntDiv(lucee.runtime.interpreter.ref.op.BigIntDiv) IntDiv(lucee.runtime.interpreter.ref.op.IntDiv) BigIntDiv(lucee.runtime.interpreter.ref.op.BigIntDiv) Assign(lucee.runtime.interpreter.ref.var.Assign) DynAssign(lucee.runtime.interpreter.ref.var.DynAssign)

Aggregations

Ref (lucee.runtime.interpreter.ref.Ref)1 BigIntDiv (lucee.runtime.interpreter.ref.op.BigIntDiv)1 IntDiv (lucee.runtime.interpreter.ref.op.IntDiv)1 Assign (lucee.runtime.interpreter.ref.var.Assign)1 DynAssign (lucee.runtime.interpreter.ref.var.DynAssign)1