@Throws(IllegalArgumentException::class) fun internalsprintf(s: Double): String? { var s2: String? = "" when (conversionCharacter) { 'f' -> s2 = printFFormat(s) 'E', 'e' -> s2 = printEFormat(s) 'G', 'g' -> s2 = printGFormat(s) else -> throw IllegalArgumentException("Cannot format a double with a format using a $conversionCharacter conversion character.") } return s2 }
Format a double argument using this conversion specification .