SignPadding

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 allclose all

Basic Examples  (2)

The default pads before signs:

Pad between signs and numbers instead:

Scope  (2)

Use SignPadding with PaddedForm:

EngineeringForm:

ScientificForm:

AccountingForm:

PercentForm by default pads before the and % signs:

Pad inside the signs:

Pad after the signs:

Pad outside the signs:

Wolfram Research (1991), SignPadding, Wolfram Language function, https://reference.wolfram.com/language/ref/SignPadding.html (updated 2019).

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_2024_signpadding, author="Wolfram Research", title="{SignPadding}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/SignPadding.html}", note=[Accessed: 21-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_signpadding, organization={Wolfram Research}, title={SignPadding}, year={2019}, url={https://reference.wolfram.com/language/ref/SignPadding.html}, note=[Accessed: 21-December-2024 ]}