private static object _floatToInteger(object key) { if (key is double dk) { return(Math.FloatToInteger(dk).Item1); } return(key); }
LuaValue _floatToInteger(LuaValue key) { if (key.isFloat()) { var f = key.toFloat(); return(new LuaValue(Math.FloatToInteger(f).Item1)); } return(key); }
object _floatToInteger(object key) { if (LuaValue.isFloat(key)) { var f = LuaValue.toFloat(key); return(Math.FloatToInteger(f).Item1); } return(key); }
private static long Shr(long a, long b) { return(Math.ShiftRight(a, b)); }
private static long Shl(long a, long b) { return(Math.ShiftLeft(a, b)); }
private static double Fidiv(double a, double b) { return(Math.FFloorDiv(a, b)); }
private static long Iidiv(long a, long b) { return(Math.FloorDiv(a, b)); }
private static double Fmod(double a, double b) { return(Math.FMod(a, b)); }
private static long Imod(long a, long b) { return(Math.Mod(a, b)); }