Created
September 7, 2016 22:48
-
-
Save stephenwithav/b0d25868cc21754096262539334a22a7 to your computer and use it in GitHub Desktop.
round
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func Round(f float64) float64 { | |
return math.Floor(f+.5) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment