query
On this page

fixedWidthNumber

lib.strings.fixedWidthNumber

Docs pulled from | This Revision | about 12 hours ago


Format a number adding leading zeroes up to fixed width.

Inputs

width

1. Function argument

n

2. Function argument

Examples

fixedWidthNumber usage example

fixedWidthNumber 5 15
=> "00015"

Noogle also knows

Aliases