guys, after looking at the above could… how kotlin handles casting to int values, when casting from a floating number to an Int? We could use the transpiled code with a bit flat operator to 0 to force the value to be int.
javascript
var x = 1.5; // Float or Double in kotlin
var y = x | 0; // casting to Int in kotlin