Skip to content

Instantly share code, notes, and snippets.

@krambuhl
Created May 5, 2013 10:53
Show Gist options
  • Save krambuhl/5520479 to your computer and use it in GitHub Desktop.
Save krambuhl/5520479 to your computer and use it in GitHub Desktop.
percentBetween
var percentBetween = function(n1, n2, pos) {
return Math.floor(pos * n2) + n1;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment