Skip to content

Instantly share code, notes, and snippets.

@kaizawa
Created September 7, 2013 13:23
Show Gist options
  • Save kaizawa/6475516 to your computer and use it in GitHub Desktop.
Save kaizawa/6475516 to your computer and use it in GitHub Desktop.
Method to get number at certain digit from value.
private getNumberAtDigit(int value, int digit)
{
return (number / (int) Math.pow(10, at - 1)) % 10;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment