Skip to content

Instantly share code, notes, and snippets.

@AlphaGit
Created January 9, 2016 22:26
Show Gist options
  • Save AlphaGit/5b7ca1d64d482ce7a472 to your computer and use it in GitHub Desktop.
Save AlphaGit/5b7ca1d64d482ce7a472 to your computer and use it in GitHub Desktop.
Knowledge management
function sum(value1, value2) {
return value1 + value2;
}
sum(2, 2); // 4
sum(0.2, 0.6); // 0.8
sum(0.2, 0.7); // 0.8999999999999999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment