Join Slack
Powered by
What is the recommended way to cast a float to int...
# getting-started
f
fmd
04/14/2016, 6:58 PM
What is the recommended way to cast a float to int, e.g. when doing a calculation. This?
Copy code
val result = (width / height).toInt() // width and height are both Floats
Open in Slack
Previous
Next