(value float64)
| 385 | } |
| 386 | |
| 387 | func formatCompactAIC(value float64) string { |
| 388 | if value <= 0 { |
| 389 | return "-" |
| 390 | } |
| 391 | if value >= 1000 { |
| 392 | return fmt.Sprintf("%.1fK", value/1000) |
| 393 | } |
| 394 | if value >= 10 { |
| 395 | return fmt.Sprintf("%.1f", value) |
| 396 | } |
| 397 | if value >= 1 { |
| 398 | return fmt.Sprintf("%.2f", value) |
| 399 | } |
| 400 | return fmt.Sprintf("%.3f", value) |
| 401 | } |
no outgoing calls
no test coverage detected