title: Getting numbers behind decimal point
body: <p>I'm currently developing in C# and I'm trying get a digit from a <code>float</code> value and store it into an <code>int</code>. For example:</p>
  
  <pre><code>float f = 0.04;
  </code></pre>
  
  <p>I want <code>int r = 4;</code></p>
  
  <p>Is there a way to do this? I want to be able to <code>switch(r)</code>.</p>