MCPcopy Index your code
hub / github.com/google/mangle / FormatNumber

Function FormatNumber

ast/ast.go:87–89  ·  view source on GitHub ↗

FormatNumber turns a number constant into a string.

(num int64)

Source from the content-addressed store, hash-verified

85
86// FormatNumber turns a number constant into a string.
87func FormatNumber(num int64) string {
88 return fmt.Sprintf("%d", num)
89}
90
91// FormatFloat64 turns a float64 constant into a string.
92func FormatFloat64(floatNum float64) string {

Callers 3

EvalApplyFnFunction · 0.92
StringMethod · 0.85
DisplayStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected