Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/yuin/gopher-lua
/ String
Method
String
value.go:114–119 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
112
}
113
114
func
(nm LNumber) String() string {
115
if
isInteger(nm) {
116
return
fmt.Sprint(int64(nm))
117
}
118
return
fmt.Sprint(float64(nm))
119
}
120
121
func
(nm LNumber) Type() LValueType {
return
LTNumber }
122
Callers
1
Format
Method · 0.95
Calls
1
isInteger
Function · 0.85
Tested by
no test coverage detected