Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pi by the digits.
var piDigit = function(i) {
if(i == 0) {
i = -1;
}
return (Math.PI + "").substring(i+1,i+2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment