Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1684
func
(ls *LState) ToNumber(n int) LNumber {
1685
return
LVAsNumber(ls.Get(n))
1686
}
1687
1688
func
(ls *LState) ToString(n int) string {
1689
return
LVAsString(ls.Get(n))
Callers
2
TestToNumber
Function · 0.45
TestCoroutineApi1
Function · 0.45
Calls
2
Get
Method · 0.95
LVAsNumber
Function · 0.85
Tested by
2
TestToNumber
Function · 0.36
TestCoroutineApi1
Function · 0.36