Added ‘fill’ kwarg to int.to_string()
int.to_string() now accepts a fill
argument. This allows you to pad the string representation of the integer with leading zeroes:
n = 4
message(n.to_string())
message(n.to_string(fill: 3))
n = -4
message(n.to_string(fill: 3))
OUTPUT:
4
004
-04