What is the recommended way to cast a float to int...
# getting-started
f
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