is an option for NumberForm and related functions that specifies whether padding should be inserted after signs.
SignPadding
is an option for NumberForm and related functions that specifies whether padding should be inserted after signs.
Details
- SignPaddingTrue specifies that any padding that is needed should be inserted between the sign and the digits in a number.
- SignPaddingFalse specifies that the padding should be inserted outside the sign.
- Different sign characters can be present to the left and right of the number, as specified by the option NumberSigns . Padding strings on either side of the number are given by NumberPadding {"sleft","sright"}. Whether those padding strings are placed inside the corresponding signs is given by SignPadding{lbool,rbool}.
Examples
open all close allBasic Examples (2)
The default pads before signs:
Pad between signs and numbers instead:
Scope (2)
Use SignPadding with PaddedForm :
PercentForm by default pads before the – and % signs:
Pad inside the signs:
Pad after the signs:
Pad outside the signs:
See Also
Tech Notes
History
Introduced in 1991 (2.0) | Updated in 2019 (12.0)
Text
Wolfram Research (1991), SignPadding, Wolfram Language function, https://reference.wolfram.com/language/ref/SignPadding.html (updated 2019).
CMS
Wolfram Language. 1991. "SignPadding." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/SignPadding.html.
APA
Wolfram Language. (1991). SignPadding. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SignPadding.html
BibTeX
@misc{reference.wolfram_2025_signpadding, author="Wolfram Research", title="{SignPadding}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/SignPadding.html}", note=[Accessed: 17-November-2025]}
BibLaTeX
@online{reference.wolfram_2025_signpadding, organization={Wolfram Research}, title={SignPadding}, year={2019}, url={https://reference.wolfram.com/language/ref/SignPadding.html}, note=[Accessed: 17-November-2025]}