예제 #1
0
        private static object _floatToInteger(object key)
        {
            if (key is double dk)
            {
                return(Math.FloatToInteger(dk).Item1);
            }

            return(key);
        }
예제 #2
0
        LuaValue _floatToInteger(LuaValue key)
        {
            if (key.isFloat())
            {
                var f = key.toFloat();
                return(new LuaValue(Math.FloatToInteger(f).Item1));
            }

            return(key);
        }
예제 #3
0
        object _floatToInteger(object key)
        {
            if (LuaValue.isFloat(key))
            {
                var f = LuaValue.toFloat(key);
                return(Math.FloatToInteger(f).Item1);
            }

            return(key);
        }
예제 #4
0
 private static long Shr(long a, long b)
 {
     return(Math.ShiftRight(a, b));
 }
예제 #5
0
 private static long Shl(long a, long b)
 {
     return(Math.ShiftLeft(a, b));
 }
예제 #6
0
 private static double Fidiv(double a, double b)
 {
     return(Math.FFloorDiv(a, b));
 }
예제 #7
0
 private static long Iidiv(long a, long b)
 {
     return(Math.FloorDiv(a, b));
 }
예제 #8
0
 private static double Fmod(double a, double b)
 {
     return(Math.FMod(a, b));
 }
예제 #9
0
 private static long Imod(long a, long b)
 {
     return(Math.Mod(a, b));
 }