Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codechenx/FastTableViewer
/ F2S
Function
F2S
utils.go:42–44 ·
view source on GitHub ↗
F2S covert float64 to bool
(i float64)
Source
from the content-addressed store, hash-verified
40
41
// F2S covert float64 to bool
42
func
F2S(i float64) string {
43
return
strconv.FormatFloat(i,
'f'
, 4, 64)
44
}
45
46
// S2F covert string to float64
47
func
S2F(i string) float64 {
Callers
4
TestF2S_Basic
Function · 0.85
BenchmarkContinuousStats
Function · 0.85
summary
Method · 0.85
summary
Method · 0.85
Calls
no outgoing calls
Tested by
2
TestF2S_Basic
Function · 0.68
BenchmarkContinuousStats
Function · 0.68