lpad

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

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

Extension function on Int.

Return

the left-padded string

Parameters

width

the minimum width of the resulting string

padChar

the character to pad with (default '0')