birgersp
01/10/2018, 12:55 PMfun main (args: Array<String>) {
val value = 0.3
val factor = value as Int
println(factor)
}
Prints:
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?