MCPcopy
hub / github.com/google/mangle / FormatFloat64

Function FormatFloat64

ast/ast.go:92–94  ·  view source on GitHub ↗

FormatFloat64 turns a float64 constant into a string.

(floatNum float64)

Source from the content-addressed store, hash-verified

90
91// FormatFloat64 turns a float64 constant into a string.
92func FormatFloat64(floatNum float64) string {
93 return strconv.FormatFloat(floatNum, 'f', -1, 64)
94}
95
96// FormatTime formats a time instant (nanoseconds since Unix epoch) as an ISO 8601 string.
97func FormatTime(nanos int64) string {

Callers 2

StringMethod · 0.85
DisplayStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected