MCPcopy Create free account
hub / github.com/yuin/gopher-lua / ToNumber

Method ToNumber

_state.go:1471–1473  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1469}
1470
1471func (ls *LState) ToNumber(n int) LNumber {
1472 return LVAsNumber(ls.Get(n))
1473}
1474
1475func (ls *LState) ToString(n int) string {
1476 return LVAsString(ls.Get(n))

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
LVAsNumberFunction · 0.85

Tested by

no test coverage detected