(f float64, p uint8)
| 162 | } |
| 163 | |
| 164 | func floatToString(f float64, p uint8) string { |
| 165 | fs := fmt.Sprintf("%#f%0*s", f, p, "") |
| 166 | idx := strings.IndexRune(fs, '.') |
| 167 | return fs[:idx+int(p)+1] |
| 168 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…