title: Kotlin - How to check double in if condition
body: <p>I have if statment and I wanted to check my variable if is double.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>val doubleVal = (findViewId&lt;EditText&gt;(R.id.)).text.toString()
  val doubleS = Double.parseDouble(doubleVal)
  
  if(???)
  {
      println("Number is double")
  }
  else
  {
      editDouble.error = "Type double number!!"
  }
  </code></pre>