title: Type mismatch: inferred type is Double but Float was expected (using Kotlin by the way)
body: <p><strong>The problem</strong>: So, obviously 3.0 can be considered a float. But for some reason Kotlin sees it as a double. This makes no sense to me. Could somebody tell me why Kotlin sees the number 3.0 as a double, rather than a float? Thanks!</p>
  <pre><code>fun main(){
      val num = 3.0
      random(num)
  }
  
  fun random(num: Float){
      print(num)
  }
  </code></pre>
  <p><strong>Note</strong>
  This is the online IDE that I was using.
  <a href="https://developer.android.com/training/kotlinplayground" rel="nofollow noreferrer">https://developer.android.com/training/kotlinplayground</a></p>