-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
Description
As per documentation, the math.Round "returns the nearest integer" [1]. Why does it return it in a float? [2] Wouldn't make more sense to return it in an integer typed variable?
[1]
Line 58 in 6104939
| // Round returns the nearest integer, rounding half away from zero. |
[2]
Line 64 in 6104939
| func Round(x float64) float64 { |