(a, b int)
| 3 | import "math" |
| 4 | |
| 5 | func MinNonZero(a, b int) int { |
| 6 | switch { |
| 7 | case a == 0: |
| 8 | return b |
| 9 | case b == 0: |
| 10 | return a |
| 11 | } |
| 12 | |
| 13 | return min(a, b) |
| 14 | } |
| 15 | |
| 16 | func Round(a float64) int { |
| 17 | return int(math.Round(a)) |
no outgoing calls
no test coverage detected