Skip to content

Instantly share code, notes, and snippets.

@inhies
Created May 9, 2013 06:55
Show Gist options
  • Save inhies/5545997 to your computer and use it in GitHub Desktop.
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
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