该帮助的版本不再更新,请参见https://www.jmp.com/support/help/zh-cn/15.2 获取最新的版本.


The Format() function provides options for formatting numbers with thousands separators, decimal points, geographic symbols, p-values, and so on. The following example shows a basic format for a fixed decimal column.
The syntax for Function() arguments is shown in “Format(x, width|<width, decimal places>, <"Use thousands separator">)” in the JSL Syntax Reference. You can also find the argument names and options in the data table Column Info window.
Date-Time Functions and Formats and Currency provide details about formatting date-time values and currency.
To format numbers in Matrix Box(), Number Col Box(), Number Col Edit Box(), and Number Edit Box(), send the Set Format message to the display box. You can then specify the same arguments as for the Format() function, such as the following:
The syntax for Set Format arguments is shown in “number col box<<Set Format(<width>|<width, decimal places>, <"Use thousands separator">)” in the JSL Syntax Reference. You can also find the argument names and options in the data table Column Info window.