| 137 | } |
| 138 | |
| 139 | static int math_frexp (lua_State *L) { |
| 140 | int e; |
| 141 | lua_pushnumber(L, frexp(luaL_checknumber(L, 1), &e)); |
| 142 | lua_pushinteger(L, e); |
| 143 | return 2; |
| 144 | } |
| 145 | |
| 146 | static int math_ldexp (lua_State *L) { |
| 147 | lua_pushnumber(L, ldexp(luaL_checknumber(L, 1), luaL_checkint(L, 2))); |
nothing calls this directly
no test coverage detected