View definition

(*State).ToNumber

Defined in github.com/Shopify/go-lua/lua.go

Description

ToNumber converts the Lua value at index to the Go type for a Lua number (float64). The Lua value must be a number or a string convertible to a number.

If the operation failed, the second return value will be false.

http://www.lua.org/manual/5.2/manual.html#lua_tonumberx

ToNumber is referenced in 3 repositories

github.com/Shopify/go-lua github.com/dimiro1/experiments github.com/jtolds/go-luar