| 111 | |
| 112 | |
| 113 | static int math_ceil (lua_State *L) { |
| 114 | if (lua_isinteger(L, 1)) |
| 115 | lua_settop(L, 1); /* integer is its own ceiling */ |
| 116 | else { |
| 117 | lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); |
| 118 | pushnumint(L, d); |
| 119 | } |
| 120 | return 1; |
| 121 | } |
| 122 | |
| 123 | |
| 124 | static int math_fmod (lua_State *L) { |
nothing calls this directly
no test coverage detected