Lines Matching refs:luaL_checknumber
46 lua_pushnumber(L, l_mathop(fabs)(luaL_checknumber(L, 1))); in math_abs()
51 lua_pushnumber(L, l_mathop(sin)(luaL_checknumber(L, 1))); in math_sin()
56 lua_pushnumber(L, l_mathop(cos)(luaL_checknumber(L, 1))); in math_cos()
61 lua_pushnumber(L, l_mathop(tan)(luaL_checknumber(L, 1))); in math_tan()
66 lua_pushnumber(L, l_mathop(asin)(luaL_checknumber(L, 1))); in math_asin()
71 lua_pushnumber(L, l_mathop(acos)(luaL_checknumber(L, 1))); in math_acos()
76 lua_Number y = luaL_checknumber(L, 1); in math_atan()
109 lua_Number d = l_mathop(floor)(luaL_checknumber(L, 1)); in math_floor()
120 lua_Number d = l_mathop(ceil)(luaL_checknumber(L, 1)); in math_ceil()
138 lua_pushnumber(L, l_mathop(fmod)(luaL_checknumber(L, 1), in math_fmod()
139 luaL_checknumber(L, 2))); in math_fmod()
155 lua_Number n = luaL_checknumber(L, 1); in math_modf()
167 lua_pushnumber(L, l_mathop(sqrt)(luaL_checknumber(L, 1))); in math_sqrt()
180 lua_Number x = luaL_checknumber(L, 1); in math_log()
185 lua_Number base = luaL_checknumber(L, 2); in math_log()
200 lua_pushnumber(L, l_mathop(exp)(luaL_checknumber(L, 1))); in math_exp()
205 lua_pushnumber(L, luaL_checknumber(L, 1) * (l_mathop(180.0) / PI)); in math_deg()
210 lua_pushnumber(L, luaL_checknumber(L, 1) * (PI / l_mathop(180.0))); in math_rad()
278 l_srand((unsigned int)(lua_Integer)luaL_checknumber(L, 1)); in math_randomseed()
307 lua_pushnumber(L, l_mathop(cosh)(luaL_checknumber(L, 1))); in math_cosh()
312 lua_pushnumber(L, l_mathop(sinh)(luaL_checknumber(L, 1))); in math_sinh()
317 lua_pushnumber(L, l_mathop(tanh)(luaL_checknumber(L, 1))); in math_tanh()
322 lua_Number x = luaL_checknumber(L, 1); in math_pow()
323 lua_Number y = luaL_checknumber(L, 2); in math_pow()
330 lua_pushnumber(L, l_mathop(frexp)(luaL_checknumber(L, 1), &e)); in math_frexp()
336 lua_Number x = luaL_checknumber(L, 1); in math_ldexp()
343 lua_pushnumber(L, l_mathop(log10)(luaL_checknumber(L, 1))); in math_log10()