title: Getting each individual digit from a whole integer
body: <p>Let's say I have an integer called 'score', that looks like this:</p>
  
  <pre><code>int score = 1529587;
  </code></pre>
  
  <p>Now what I want to do is get each digit 1, 5, 2, 9, 5, 8, 7 from the score <strike>using bitwise operators</strike>(See below edit note).  </p>
  
  <p>I'm pretty sure this can be done since I've once used a similar method to extract the red green and blue values from a hexadecimal colour value.</p>
  
  <p>How would I do this?</p>
  
  <p><strong>Edit</strong><br>
  It doesn't necessarily have to be bitwise operators, I just thought it'd be simpler that way.</p>