Created
May 9, 2013 06:55
-
-
Save inhies/5545997 to your computer and use it in GitHub Desktop.
Returns the maximum value from any number of float64 values passed to it
This file contains hidden or 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 MaxFloat64(v ...float64) (max float64) { | |
for _, x := range v { | |
if x > max { | |
max = x | |
} | |
} | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment