android java need to use tenth place in equation
<p>ok so im very new to android and java but im trying to build my first app and im stuck here is  part of my code so far</p>

<pre><code>private void calculate() {
        year = Double.parseDouble(edityear.getText().toString());
        year = year / 12;
        year = year * 10;
        year = Math.round(year);
        year = year / 10;
</code></pre>

<p>now what i need to do it take the tenths place out and use it to pick what page im going to show.</p>

<p>so  if i started with 1985 i would end up with 165.4... so i want to take the 4 and use it in something like this</p>

<pre><code>if (year == 4)  {
   setContentView(R.layout.splash);
}
</code></pre>

<p>thanks for the help</p>
