Hi all! This code: ``` fun main (args: Array<S...
# javascript
b
Hi all! This code:
Copy code
fun main (args: Array<String>) {

    val value = 0.3
    val factor = value as Int
    println(factor)
}
Prints:
Copy code
0.3
Which doesn't really make any sense to me.
factor
should be an int, so shouldn't it be
0
, then? Can someone explain this to me?