MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / FloatToString

Function FloatToString

common/interface_to_all.go:67–70  ·  view source on GitHub ↗
(val float64)

Source from the content-addressed store, hash-verified

65}
66
67func FloatToString(val float64) string {
68 float, _ := strconv.ParseFloat(fmt.Sprintf("%.2f", val), 64)
69 return strconv.FormatFloat(float, 'g', -1, 64)
70}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected