numbers after comma in Java
<p>How do I get <code>n</code> numbers after a comma in Java?</p>

<pre><code>...
double numb = 123.45;
void lastNumber(int n){
   // here
}
...
</code></pre>

<p>(in this example n = 2, so two numbers after the comma)</p>
