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