MCPcopy Create free account
hub / github.com/cogentcore/core / Float64ToString

Function Float64ToString

tensor/string.go:51–53  ·  view source on GitHub ↗

Float64ToString converts float64 to string value using strconv, g format

(val float64)

Source from the content-addressed store, hash-verified

49
50// Float64ToString converts float64 to string value using strconv, g format
51func Float64ToString(val float64) string {
52 return strconv.FormatFloat(val, 'g', -1, 64)
53}
54
55func (tsr *String) IsString() bool {
56 return true

Callers 8

AddScalarMethod · 0.85
MulScalarMethod · 0.85
SetFloatMethod · 0.85
SetFloat1DMethod · 0.85
SetFloatRowCellMethod · 0.85
SetFloatsMethod · 0.85
CopyFromMethod · 0.85
CopyCellsFromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected