此为 Mathematica 4 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.2)

NumberPadding

Usage

NumberPaddingNumberForm及其相关函数的可选项,用来给出用作数的左右填充符的字符串.


Notes

NumberPadding ->  "sleft", "sright" 给出用作左右填充符的字符串
• 在NumberForm中,其缺省设置为NumberPadding -> {"", ""}.
• 在PaddedForm中,其缺省设置为NumberPadding -> {" ", "0"}.
• 用作填充符的字符串被插在数字的位置. • 参见 Mathematica 全书:2.8.7节.
• 同时参见: SignPadding.
Further Examples

With the default setting for the option NumberPadding, both NumberForm and PaddedForm insert trailing zeros when they pad a number on the right. You can use spaces for padding on both the left and the right by setting the option NumberPadding to {" ", " "}.

In[1]:=  

Out[1]//PaddedForm=