title: Can't Parse a double from user input Kotlin
body: <p>I'm trying to learn and create a basic sales tax app (inputs from item price and tax). In order to do this, I need to use a float or double for the decimals. I am very new to kotlin and don't know much, so I do not understand how I can get my num1 to parseDouble, I can clearly do it with the Integer data type with no errors. I've also tried toDouble which is giving me errors. Any help would be appreciated, thank you!</p>
  <pre class="lang-kotlin prettyprint-override"><code>val calcButton = findViewById&lt;Button&gt;(R.id.calcButton)
  calcButton.setOnClickListener {
     var textPrice: EditText = findViewById(R.id.textPrice)
     var textTax:   EditText = findViewById(R.id.textTax)
     var textTotal: EditText = findViewById(R.id.textTotal)
  
     // error here: &quot;Unresolved reference: parseDouble&quot;
     var num1 = Double.parseDouble(textTax.getText().toString());
     // &quot;parseInt&quot; is working, however
     var num2 = Integer.parseInt(textTax.getText().toString());
  }
  </code></pre>