title: Kotlin: How to call setText() using a Float data type?
body: <p>How do I call setText() using float data type? I have already tried this</p>
  <pre><code>if (response.isSuccessful) {
        val destination = response.body()
        destination?.let {
                client_names.setText(destination.client_name)
                product_names.setText(destination.product_name)
  
                amounts.setText(String.valueOf(destination.amount)) -----&gt;
                prices.setText(String.valueOf(destination.price))   -----&gt;
  
                comments.setText(destination.comment)
  
                collapsing_toolbar.title = destination.client_name + destination.product_name
           }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/x5oCV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x5oCV.png" alt="enter image description here" /></a></p>
  <p>I have tried this answer from this link</p>
  <p><a href="https://stackoverflow.com/questions/8907860/how-to-call-settext-using-a-float-data-type">How to call setText() using a Float data type?</a></p>
  <p>but I get this error</p>
  <pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.smartherd.globofly, PID: 8999
      java.lang.NumberFormatException: empty String
          at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
          at sun.misc.FloatingDecimal.parseFloat(FloatingDecimal.java:122)
          at java.lang.Float.parseFloat(Float.java:451)
          at com.smartherd.globofly.activities.DestinationDetailActivity$loadDetails$1.onResponse(DestinationDetailActivity.kt:58)
          at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:71)
          at android.os.Handler.handleCallback(Handler.java:883)
          at android.os.Handler.dispatchMessage(Handler.java:100)
          at android.os.Looper.loop(Looper.java:214)
          at android.app.ActivityThread.main(ActivityThread.java:7356)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
  I/Process: Sending signal. PID: 8999 SIG: 9
  </code></pre>