Kotlin has an excellent feature called string templates. I really love it.
val i = 10 val s = \"i = $i\" // evaluates to \"i = 10\"
But
Its simple, Use:
val str:String = "%.2f".format(3.14159)