public static LithpPrimitive Round(LithpList parameters, LithpOpChain state, LithpInterpreter interp) { LithpFloat n = (LithpFloat)parameters[0].Cast(LithpType.FLOAT); return(new LithpInteger(Convert.ToUInt64(Math.Round(n.value)))); }
protected override bool compareMoreThan(LithpPrimitive other) { LithpFloat iOther = (LithpFloat)other; return(value > iOther.value); }
public override bool compareEqual(LithpPrimitive other) { LithpFloat iOther = (LithpFloat)other; return(value == iOther.value); }
protected override LithpPrimitive operatorDivide(LithpPrimitive other) { LithpFloat iOther = (LithpFloat)other; return(new LithpFloat(value / iOther.value)); }
protected override LithpPrimitive operatorMultiply(LithpPrimitive other) { LithpFloat iOther = (LithpFloat)other; return(new LithpFloat(value * iOther.value)); }