MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / math_abs

Function math_abs

other_src/lua/src/lmathlib.cpp:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36static int math_abs (lua_State *L) {
37 lua_pushnumber(L, fabs(luaL_checknumber(L, 1)));
38 return 1;
39}
40
41static int math_sin (lua_State *L) {
42 lua_pushnumber(L, sin(luaL_checknumber(L, 1)));

Callers

nothing calls this directly

Calls 2

luaL_checknumberFunction · 0.85
lua_pushnumberFunction · 0.70

Tested by

no test coverage detected