is an option for NumberForm and related functions which gives strings to use as padding on the left‐ and right‐hand sides of numbers.


NumberPadding
is an option for NumberForm and related functions which gives strings to use as padding on the left‐ and right‐hand sides of numbers.
Details

- NumberPadding->{"sleft","sright"} specifies strings to use for padding on the left and right.
- In NumberForm, the default setting is NumberPadding->{"",""}.
- In PaddedForm, the default setting is NumberPadding->{" ","0"}. »
- The strings specified as padding are inserted in place of digits.
Examples
open all close allScope (2)
Use NumberPadding with PaddedForm:
PaddedForm pads with zeros on the right by default:
See Also
Tech Notes
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), NumberPadding, Wolfram Language function, https://reference.wolfram.com/language/ref/NumberPadding.html.
CMS
Wolfram Language. 1991. "NumberPadding." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NumberPadding.html.
APA
Wolfram Language. (1991). NumberPadding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumberPadding.html
BibTeX
@misc{reference.wolfram_2025_numberpadding, author="Wolfram Research", title="{NumberPadding}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/NumberPadding.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_numberpadding, organization={Wolfram Research}, title={NumberPadding}, year={1991}, url={https://reference.wolfram.com/language/ref/NumberPadding.html}, note=[Accessed: 08-August-2025]}