MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / S2F

Function S2F

utils.go:47–53  ·  view source on GitHub ↗

S2F covert string to float64

(i string)

Source from the content-addressed store, hash-verified

45
46// S2F covert string to float64
47func S2F(i string) float64 {
48 s, err := strconv.ParseFloat(i, 64)
49 if err != nil {
50 fatalError(err)
51 }
52 return s
53}
54
55// I2S covert int to string
56func I2S(i int) string {

Callers 1

TestS2F_ValidFunction · 0.85

Calls 1

fatalErrorFunction · 0.85

Tested by 1

TestS2F_ValidFunction · 0.68