Skip to content

Instantly share code, notes, and snippets.

@Crilou
Last active November 3, 2018 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crilou/9712733f2bbeee900ecda293b050dec0 to your computer and use it in GitHub Desktop.
Save Crilou/9712733f2bbeee900ecda293b050dec0 to your computer and use it in GitHub Desktop.
Math
//VALEUR ABSOLUE SUR ENTIER
func abs(n int) int {
if n < 0 {
return -n
}
return n
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment