jinja2.runtime.to_string.zfill

to_string.zfill(width) → unicode

Pad a numeric string S with zeros on the left, to fill a field of the specified width. The string S is never truncated.