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.
Format( x, "Latitude DDD", "PUNDIR"); // "PUN" for punctuation, "DIR" for direction, PUNDIR for both
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.