ComfyUI Node
zfill
Pads the string with zeros on the left. This node returns a copy of the string left filled with ASCII '0' digits to make a string of length width. A leading sign prefix ('+'/'-') is handled by inserting the padding after the sign character rather than before.
zfill
- STRING
◄string►
◄width10►
CategoryBasic/STRING
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — | |
| width | INT | 10 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |