MCPcopy Create free account
hub / github.com/Tencent/xLua / floatCaster

Method floatCaster

Assets/XLua/Src/ObjectCasters.cs:298–301  ·  view source on GitHub ↗
(RealStatePtr L, int idx, object target)

Source from the content-addressed store, hash-verified

296 }
297
298 private static object floatCaster(RealStatePtr L, int idx, object target)
299 {
300 return (float)LuaAPI.lua_tonumber(L, idx);
301 }
302
303 private object decimalCaster(RealStatePtr L, int idx, object target)
304 {

Callers

nothing calls this directly

Calls 1

lua_tonumberMethod · 0.80

Tested by

no test coverage detected