pub unsafe extern "C" fn tonumber(state: lua_State, index: i32) -> f64Expand description
Converts the Lua value at the given acceptable index to the C type lua_Number (see lua_Number).
The Lua value must be a number or a string convertible to a number (see §2.2.1); otherwise, tonumber (lua_tonumber) returns 0.