Fundamentals2 / 15
Up next

Numeric types

fun main() {
    val i = 42
    val d = 3.14
    val big = 10_000_000_000L
    // integer division truncates; use a Double for real division
    println("${i / 5} ${7.0 / 2} $d $big")
}
What you're solving

Int, Double, Long and their operators