public static int YuanToFen_s(IntPtr l) { int result; try { double yuan; LuaObject.checkType(l, 1, out yuan); int i = MoneyCaculate.YuanToFen(yuan); LuaObject.pushValue(l, true); LuaObject.pushValue(l, i); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }