convert string like "8.37%" to integer like 8.37
<p>I am using this method to convert it, </p>

<pre><code>String R=sgp.getR();
String R1=R.replace("%", "");
int N=Integer.parseInt(R1);
</code></pre>

<p>but getting Number format exception.
In R i am getting 8.37% and i have to make it 8.37 in integer so that i can use it.
I have also tried</p>

<pre><code> int N=Integer.valueOf(R1)
</code></pre>

<p>yup i got it it will be float it was just out of my mind...</p>
