title: Kotlin Long to Float difference
body: <p>I am trying to convert Long value to Float in Kotlin. However I am seeing it is changing the value by a small fraction.
  Here's a simple test run:</p>
  
  <pre><code>import java.text.DecimalFormat
  
  fun main(args: Array&lt;String&gt;) {
      val l = 1513741500
      val f:Float = l.toFloat()
      val df = DecimalFormat("0")
      println(df.format(f))
  }
  
  Output:
  1513741440
  </code></pre>
  
  <p>As can be seen there is a slight difference between the values. How can I ensure the same value is returned on conversion?</p>