title: How to calculate percentage in Kotlin
body: <p>I need to calculate a percentage in Kotlin. I tried but failed to get the correct answer:</p>
  <pre><code>var percentage = (count/totalCount) * 100
  it.toast(&quot;Percentage: $percentage&quot;)
  </code></pre>
  <p>What is the proper syntax in Kotlin?</p>