MCPcopy 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
114func (nm LNumber) String() string {
115 if isInteger(nm) {
116 return fmt.Sprint(int64(nm))
117 }
118 return fmt.Sprint(float64(nm))
119}
120
121func (nm LNumber) Type() LValueType { return LTNumber }
122

Callers 1

FormatMethod · 0.95

Calls 1

isIntegerFunction · 0.85

Tested by

no test coverage detected