string formats code example Example: string format fun Double.format(digits: Int) = "%.${digits}f".format(this)