rpad

fun Int.rpad(width: Int, padChar: Char = '0'): String

Right-pads this Int to the specified width with padChar.

Extension function on Int.

Return

the right-padded string

Parameters

width

the minimum width of the resulting string

padChar

the character to pad with (default '0')