public LuaValue mod(int rhs) { return LuaDouble.dmod(checkarith(), rhs); }
public LuaValue modFrom(double lhs) { return LuaDouble.dmod(lhs, checkarith()); }
public LuaValue div(int rhs) { return LuaDouble.ddiv(checkarith(), rhs); }
public LuaValue divInto(double lhs) { return LuaDouble.ddiv(lhs, checkarith()); }
public LuaValue modFrom(double lhs) { return LuaDouble.dmod(lhs, v); }
/** * Return a LuaNumber that represents the value provided * * @param l long value to represent. * @return LuaNumber that is eithe LuaInteger or LuaDouble representing l * @see LuaValue#valueOf(int) * @see LuaValue#valueOf(double) */ public static LuaNumber valueOf(long l) { int i = (int) l; return l == i ? (i <= 255 && i >= -256 ? intValues[i + 256] : (LuaNumber) new LuaInteger(i)) : LuaDouble.valueOf(l); }
public LuaValue divInto(double lhs) { return LuaDouble.ddiv(lhs, v); }
public LuaValue mod(int rhs) { return LuaDouble.dmod(v, rhs); }
public LuaValue div(int rhs) { return LuaDouble.ddiv(v, rhs); }
public LuaValue mul(double lhs) { return LuaDouble.valueOf(lhs * v); }
public LuaValue subFrom(double lhs) { return LuaDouble.valueOf(lhs - v); }
public LuaValue sub(int rhs) { return LuaDouble.valueOf(v - rhs); }
public LuaValue add(double lhs) { return LuaDouble.valueOf(lhs + v); }