In this Kotlin lecture, we will break down why numeric type conversions are almost always explicit, how the methods
toInt(),
toDouble(),
toFloat() work, why conversions like
Double
→
Int can be dangerous, and how the
Char type is structured: the
code property, conversion via
toChar(), working with digits
'0'..
'9', and a mini-scenario for generating a coupon.