Basic DataTypes Numbers in Kotlin
Number Declaration in Kotline might be like java
Result :
10
10.2
100.0
100000000
16
arula.in
fun main(args : Array<String>)
{
/* basic data Types in Numbers */
val a : Int = 10
val b :Double =10.2
val c : Float =100.0f
val d : Long =100000000
val e : Short = 16
println(a)
println(b)
println(c)
println(d)
println(e)
println("arula.in")
}
Result :
10
10.2
100.0
100000000
16
arula.in
No comments