MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / math_abs

Function math_abs

Source/Misc/lua/src/lua.c:12531–12534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12529
12530
12531static int math_abs (lua_State *L) {
12532lua_pushnumber(L, fabs(luaL_checknumber(L, 1)));
12533return 1;
12534}
12535
12536static int math_sin (lua_State *L) {
12537lua_pushnumber(L, sin(luaL_checknumber(L, 1)));

Callers

nothing calls this directly

Calls 2

lua_pushnumberFunction · 0.85
luaL_checknumberFunction · 0.85

Tested by

no test coverage detected