MCPcopy Create free account
hub / github.com/defold/defold / math_ceil

Function math_ceil

engine/lua/src/lua/lmathlib.c:81–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81static int math_ceil (lua_State *L) {
82 lua_pushnumber(L, ceil(luaL_checknumber(L, 1)));
83 return 1;
84}
85
86static int math_floor (lua_State *L) {
87 lua_pushnumber(L, floor(luaL_checknumber(L, 1)));

Callers

nothing calls this directly

Calls 3

lua_pushnumberFunction · 0.85
ceilFunction · 0.85
luaL_checknumberFunction · 0.85

Tested by

no test coverage detected