FormatFloat64 turns a float64 constant into a string.
(floatNum float64)
| 90 | |
| 91 | // FormatFloat64 turns a float64 constant into a string. |
| 92 | func 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. |
| 97 | func FormatTime(nanos int64) string { |
no outgoing calls
no test coverage detected