var a : Double
a = Math.sin(10) // error: the integer literal does not conform to the expected type Double
a = Math.sin(10.0) //This compiles successfully
println(a)
Why doesn't kotlin perform implicit type conversion and force us to pass the exact type of data?
fun sin(value: Double): Double // at kotlin documentation