Why does this Kotlin code ``` someDouble *= (someS...
# javascript
b
Why does this Kotlin code
Copy code
someDouble *= (someShort + 1) / someOtherShort
Compile to this JS code?
Copy code
someDouble *= (someShort + 1) / someOtherShort | 0;
o
I think that’s to convert
someOtherShort
to
int
and prevent from possible different results in
Kotlin
and
js
.
b
I see… that’s something that maybe should be a compiler warning 🙂