I’m taking an EditText input from user like “1/3″,”1/4” etc. This input must be converted to Double.
This is what I’m trying to do with the code:
<code>double shareDouble= Double.parseDouble(etShare.getText().toString());
</code>
<code>double shareDouble= Double.parseDouble(etShare.getText().toString());
</code>
double shareDouble= Double.parseDouble(etShare.getText().toString());
But this throws a NumberFormatException. What I’m doing wrong. Please help..