Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/code-scan/Goal
/ Str2Float64
Function
Str2Float64
Gconvert/num.go:52–60 ·
view source on GitHub ↗
(s string)
Source
from the content-addressed store, hash-verified
50
return
float32(ret)
51
}
52
func
Str2Float64(s string) float64 {
53
ret, err := strconv.ParseFloat(s, 64)
54
if
err != nil {
55
log.Println(
"[!] Str2Float64 Error: "
, err)
56
57
return
0
58
}
59
return
ret
60
}
Callers
1
TestConvert
Function · 0.92
Calls
no outgoing calls
Tested by
1
TestConvert
Function · 0.74