MCPcopy Index your code
hub / github.com/yuin/gopher-lua / ToNumber

Method ToNumber

state.go:1684–1686  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1682}
1683
1684func (ls *LState) ToNumber(n int) LNumber {
1685 return LVAsNumber(ls.Get(n))
1686}
1687
1688func (ls *LState) ToString(n int) string {
1689 return LVAsString(ls.Get(n))

Callers 2

TestToNumberFunction · 0.45
TestCoroutineApi1Function · 0.45

Calls 2

GetMethod · 0.95
LVAsNumberFunction · 0.85

Tested by 2

TestToNumberFunction · 0.36
TestCoroutineApi1Function · 0.36